aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/teenagent.cpp
diff options
context:
space:
mode:
authorMax Horn2010-11-01 16:02:28 +0000
committerMax Horn2010-11-01 16:02:28 +0000
commite27b05ef358102fd60235a5f78d7d51e9f25a5f4 (patch)
tree50e994a47741bf619de730f6a3ece5d0a0cc7e95 /engines/teenagent/teenagent.cpp
parent7a853650047064fb15720bb58ce7c5eec28ef606 (diff)
downloadscummvm-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/teenagent.cpp')
-rw-r--r--engines/teenagent/teenagent.cpp6
1 files changed, 3 insertions, 3 deletions
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;