aboutsummaryrefslogtreecommitdiff
path: root/engines/game.h
diff options
context:
space:
mode:
authorJohannes Schickel2011-10-23 20:02:35 +0200
committerJohannes Schickel2011-10-23 20:04:03 +0200
commit3a196478c69b635c7c1c2d121b30d9710f8bd1e5 (patch)
tree2fdf78e3a0b0756279164b9f7abc683c13cab619 /engines/game.h
parenta41d72a44a660c72fdadbc3a8ef580e5e03cb890 (diff)
downloadscummvm-rg350-3a196478c69b635c7c1c2d121b30d9710f8bd1e5.tar.gz
scummvm-rg350-3a196478c69b635c7c1c2d121b30d9710f8bd1e5.tar.bz2
scummvm-rg350-3a196478c69b635c7c1c2d121b30d9710f8bd1e5.zip
ALL: Reduce assignment of "" to Common::String.
When clearing an existant object clear() should be used. When constructing objects (or using default values for parameters) the constructor of String without any argument should be used. This changes only a few instances I noticed while looking over some recent commit logs.
Diffstat (limited to 'engines/game.h')
-rw-r--r--engines/game.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/game.h b/engines/game.h
index 23512e89b8..d5136936bc 100644
--- a/engines/game.h
+++ b/engines/game.h
@@ -65,12 +65,12 @@ enum GameSupportLevel {
class GameDescriptor : public Common::StringMap {
public:
GameDescriptor();
- GameDescriptor(const PlainGameDescriptor &pgd, Common::String guioptions = "");
+ GameDescriptor(const PlainGameDescriptor &pgd, Common::String guioptions = Common::String());
GameDescriptor(const Common::String &gameid,
const Common::String &description,
Common::Language language = Common::UNK_LANG,
Common::Platform platform = Common::kPlatformUnknown,
- Common::String guioptions = "",
+ Common::String guioptions = Common::String(),
GameSupportLevel gsl = kStableGame);
/**