GUI: Let SaveLoadChooser::getResultString return a const reference.
This commit is contained in:
parent
bab992ab98
commit
f006eddac5
2 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue