mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-08 17:35:55 +01:00
simplify WMWritePropListToFile()
remove the choice of atomic/non-atomic writes. firstly, the only users of non-atomic writes were getstyle and geticonset; secondly, who in their right minds would ever want non-atomic writes; thirdly, the file system will screw you anyway *G*.
This commit is contained in:
committed by
Carlos R. Mafra
parent
833128385f
commit
badecc244b
@@ -225,7 +225,7 @@ static void SaveHistory(WMArray * history, char *filename)
|
||||
for (i = 0; i < WMGetArrayItemCount(history); ++i)
|
||||
WMAddToPLArray(plhistory, WMCreatePLString(WMGetFromArray(history, i)));
|
||||
|
||||
WMWritePropListToFile(plhistory, (char *)filename, True);
|
||||
WMWritePropListToFile(plhistory, (char *)filename);
|
||||
WMReleasePropList(plhistory);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user