aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2009-10-04 11:58:52 +0000
committerMax Horn2009-10-04 11:58:52 +0000
commit696fd7af203e28c1f3821ceea56b48d83d28fdd5 (patch)
tree8fb69e98c832f9e381e03de786c3fb25b5fbd782 /common
parentf8e8e764ceeca1ae61a6058cca7fdf94718c4518 (diff)
downloadscummvm-rg350-696fd7af203e28c1f3821ceea56b48d83d28fdd5.tar.gz
scummvm-rg350-696fd7af203e28c1f3821ceea56b48d83d28fdd5.tar.bz2
scummvm-rg350-696fd7af203e28c1f3821ceea56b48d83d28fdd5.zip
Reduce usage of Common::String::emptyString
svn-id: r44603
Diffstat (limited to 'common')
-rw-r--r--common/config-manager.h8
-rw-r--r--common/fs.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/common/config-manager.h b/common/config-manager.h
index bc734dbdc3..75e6ee6449 100644
--- a/common/config-manager.h
+++ b/common/config-manager.h
@@ -132,10 +132,10 @@ public:
//
// Some additional convenience accessors.
//
- int getInt(const String &key, const String &domName = String::emptyString) const;
- bool getBool(const String &key, const String &domName = String::emptyString) const;
- void setInt(const String &key, int value, const String &domName = String::emptyString);
- void setBool(const String &key, bool value, const String &domName = String::emptyString);
+ int getInt(const String &key, const String &domName = String()) const;
+ bool getBool(const String &key, const String &domName = String()) const;
+ void setInt(const String &key, int value, const String &domName = String());
+ void setBool(const String &key, bool value, const String &domName = String());
void registerDefault(const String &key, const String &value);
diff --git a/common/fs.cpp b/common/fs.cpp
index 1bc1c370b9..fac4dae733 100644
--- a/common/fs.cpp
+++ b/common/fs.cpp
@@ -249,7 +249,7 @@ SeekableReadStream *FSDirectory::createReadStreamForMember(const String &name) c
}
FSDirectory *FSDirectory::getSubDirectory(const String &name, int depth, bool flat) {
- return getSubDirectory(String::emptyString, name, depth, flat);
+ return getSubDirectory(String(), name, depth, flat);
}
FSDirectory *FSDirectory::getSubDirectory(const String &prefix, const String &name, int depth, bool flat) {