aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/savefile.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/common/savefile.h b/common/savefile.h
index 37dc08ced4..aba4a204e8 100644
--- a/common/savefile.h
+++ b/common/savefile.h
@@ -73,22 +73,18 @@ class SaveFileManager {
public:
virtual ~SaveFileManager() {}
- virtual SaveFile *open_savefile(const char *filename,
- bool saveOrLoad)
- {
+ virtual SaveFile *open_savefile(const char *filename, bool saveOrLoad) {
StdioSaveFile *sf = new StdioSaveFile(filename,
(saveOrLoad? "wb":"rb"));
- if(!sf->is_open()) {
+ if (!sf->is_open()) {
delete sf;
sf = NULL;
}
return sf;
}
- virtual void list_savefiles(const char *prefix,
- bool *marks, int num)
- {
- memset(marks, true, num*sizeof(bool));
+ virtual void list_savefiles(const char * /* prefix */, bool *marks, int num) {
+ memset(marks, true, num * sizeof(bool));
}
};