diff options
author | Matthew Hoops | 2013-07-15 22:51:44 -0400 |
---|---|---|
committer | Matthew Hoops | 2013-08-12 20:48:55 -0400 |
commit | 3f65a02ced741979ede333539bac67ead9dbc368 (patch) | |
tree | 81c06fe37f8ea758e7b1ef6b542edd987eeefe0a | |
parent | 7c58e9a6d57aa88590b0929110a617c6fe84a4fe (diff) | |
download | scummvm-rg350-3f65a02ced741979ede333539bac67ead9dbc368.tar.gz scummvm-rg350-3f65a02ced741979ede333539bac67ead9dbc368.tar.bz2 scummvm-rg350-3f65a02ced741979ede333539bac67ead9dbc368.zip |
COMMON: Make the two INI save file functions take a String reference
-rw-r--r-- | common/ini-file.cpp | 4 | ||||
-rw-r--r-- | common/ini-file.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/common/ini-file.cpp b/common/ini-file.cpp index be5247dcfb..9de0b38e93 100644 --- a/common/ini-file.cpp +++ b/common/ini-file.cpp @@ -53,7 +53,7 @@ bool INIFile::loadFromFile(const String &filename) { return false; } -bool INIFile::loadFromSaveFile(const char *filename) { +bool INIFile::loadFromSaveFile(const String &filename) { assert(g_system); SaveFileManager *saveFileMan = g_system->getSavefileManager(); SeekableReadStream *loadFile; @@ -181,7 +181,7 @@ bool INIFile::saveToFile(const String &filename) { return false; } -bool INIFile::saveToSaveFile(const char *filename) { +bool INIFile::saveToSaveFile(const String &filename) { assert(g_system); SaveFileManager *saveFileMan = g_system->getSavefileManager(); WriteStream *saveFile; diff --git a/common/ini-file.h b/common/ini-file.h index 1d94ce7bdc..a1505fe468 100644 --- a/common/ini-file.h +++ b/common/ini-file.h @@ -94,10 +94,10 @@ public: void clear(); bool loadFromFile(const String &filename); - bool loadFromSaveFile(const char *filename); + bool loadFromSaveFile(const String &filename); bool loadFromStream(SeekableReadStream &stream); bool saveToFile(const String &filename); - bool saveToSaveFile(const char *filename); + bool saveToSaveFile(const String &filename); bool saveToStream(WriteStream &stream); bool hasSection(const String §ion) const; |