aboutsummaryrefslogtreecommitdiff
path: root/engines/savestate.h
diff options
context:
space:
mode:
authorMax Horn2011-06-02 13:49:54 +0200
committerMax Horn2011-06-02 18:31:58 +0200
commit86240bb0dc0103e5099d23770cc04cfd907d2c61 (patch)
tree7b4396b8d325397086967be2e195f887616d1326 /engines/savestate.h
parentd21ddbce7988bdc1e611ab21cdac365fe9206134 (diff)
downloadscummvm-rg350-86240bb0dc0103e5099d23770cc04cfd907d2c61.tar.gz
scummvm-rg350-86240bb0dc0103e5099d23770cc04cfd907d2c61.tar.bz2
scummvm-rg350-86240bb0dc0103e5099d23770cc04cfd907d2c61.zip
ENGINES: Get rid of some s(n)printf calls
Diffstat (limited to 'engines/savestate.h')
-rw-r--r--engines/savestate.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/savestate.h b/engines/savestate.h
index ce78bc4ba3..df01732058 100644
--- a/engines/savestate.h
+++ b/engines/savestate.h
@@ -49,9 +49,7 @@ public:
}
SaveStateDescriptor(int s, const Common::String &d) : _thumbnail() {
- char buf[16];
- sprintf(buf, "%d", s);
- setVal("save_slot", buf);
+ setVal("save_slot", Common::String::format("%d", s));
setVal("description", d);
}