aboutsummaryrefslogtreecommitdiff
path: root/gui/saveload.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2012-07-24 23:32:17 +0200
committerJohannes Schickel2012-07-24 23:32:17 +0200
commitf006eddac56fdf4305a3d63914245b8707210725 (patch)
tree1ed030f39eea1d5bb3c9eb9757d432b417c5a976 /gui/saveload.cpp
parentbab992ab98dba252e6106161502ec2b945540ea1 (diff)
downloadscummvm-rg350-f006eddac56fdf4305a3d63914245b8707210725.tar.gz
scummvm-rg350-f006eddac56fdf4305a3d63914245b8707210725.tar.bz2
scummvm-rg350-f006eddac56fdf4305a3d63914245b8707210725.zip
GUI: Let SaveLoadChooser::getResultString return a const reference.
Diffstat (limited to 'gui/saveload.cpp')
-rw-r--r--gui/saveload.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/gui/saveload.cpp b/gui/saveload.cpp
index 0650be388c..d6a8688ce3 100644
--- a/gui/saveload.cpp
+++ b/gui/saveload.cpp
@@ -103,11 +103,9 @@ int SaveLoadChooser::runModalWithPluginAndTarget(const EnginePlugin *plugin, con
return ret;
}
-Common::String SaveLoadChooser::getResultString() const {
- if (_impl)
- return _impl->getResultString();
- else
- return Common::String();
+const Common::String &SaveLoadChooser::getResultString() const {
+ assert(_impl);
+ return _impl->getResultString();
}
} // End of namespace GUI