diff options
author | Max Horn | 2010-11-01 16:02:28 +0000 |
---|---|---|
committer | Max Horn | 2010-11-01 16:02:28 +0000 |
commit | e27b05ef358102fd60235a5f78d7d51e9f25a5f4 (patch) | |
tree | 50e994a47741bf619de730f6a3ece5d0a0cc7e95 /engines/teenagent | |
parent | 7a853650047064fb15720bb58ce7c5eec28ef606 (diff) | |
download | scummvm-rg350-e27b05ef358102fd60235a5f78d7d51e9f25a5f4.tar.gz scummvm-rg350-e27b05ef358102fd60235a5f78d7d51e9f25a5f4.tar.bz2 scummvm-rg350-e27b05ef358102fd60235a5f78d7d51e9f25a5f4.zip |
COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.
The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.
svn-id: r54004
Diffstat (limited to 'engines/teenagent')
-rw-r--r-- | engines/teenagent/detection.cpp | 2 | ||||
-rw-r--r-- | engines/teenagent/teenagent.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/teenagent/detection.cpp b/engines/teenagent/detection.cpp index a2dab9658d..0bdf35a37d 100644 --- a/engines/teenagent/detection.cpp +++ b/engines/teenagent/detection.cpp @@ -137,7 +137,7 @@ public: // } static Common::String generateGameStateFileName(const char *target, int slot) { - return Common::String::printf("%s.%02d", target, slot); + return Common::String::format("%s.%02d", target, slot); } virtual SaveStateList listSaves(const char *target) const { diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp index c30809eef4..4d300ff7fd 100644 --- a/engines/teenagent/teenagent.cpp +++ b/engines/teenagent/teenagent.cpp @@ -197,9 +197,9 @@ void TeenAgentEngine::deinit() { Common::Error TeenAgentEngine::loadGameState(int slot) { debug(0, "loading from slot %d", slot); Common::ScopedPtr<Common::InSaveFile> - in(_saveFileMan->openForLoading(Common::String::printf("teenagent.%02d", slot))); + in(_saveFileMan->openForLoading(Common::String::format("teenagent.%02d", slot))); if (!in) - in.reset(_saveFileMan->openForLoading(Common::String::printf("teenagent.%d", slot))); + in.reset(_saveFileMan->openForLoading(Common::String::format("teenagent.%d", slot))); if (!in) return Common::kReadPermissionDenied; @@ -232,7 +232,7 @@ Common::Error TeenAgentEngine::loadGameState(int slot) { Common::Error TeenAgentEngine::saveGameState(int slot, const char *desc) { debug(0, "saving to slot %d", slot); - Common::ScopedPtr<Common::OutSaveFile> out(_saveFileMan->openForSaving(Common::String::printf("teenagent.%02d", slot))); + Common::ScopedPtr<Common::OutSaveFile> out(_saveFileMan->openForSaving(Common::String::format("teenagent.%02d", slot))); if (!out) return Common::kWritingFailed; |