mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 15:41:41 +00:00
GUI: Let SaveLoadChooser::getResultString return a const reference.
This commit is contained in:
parent
bab992ab98
commit
f006eddac5
@ -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
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
int runModalWithCurrentTarget();
|
||||
int runModalWithPluginAndTarget(const EnginePlugin *plugin, const String &target);
|
||||
|
||||
Common::String getResultString() const;
|
||||
const Common::String &getResultString() const;
|
||||
|
||||
/**
|
||||
* Creates a default save description for the specified slot. Depending
|
||||
|
Loading…
Reference in New Issue
Block a user