mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 08:19:19 +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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
Common::String SaveLoadChooser::getResultString() const {
|
const Common::String &SaveLoadChooser::getResultString() const {
|
||||||
if (_impl)
|
assert(_impl);
|
||||||
return _impl->getResultString();
|
return _impl->getResultString();
|
||||||
else
|
|
||||||
return Common::String();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // End of namespace GUI
|
} // End of namespace GUI
|
||||||
|
@ -52,7 +52,7 @@ public:
|
|||||||
int runModalWithCurrentTarget();
|
int runModalWithCurrentTarget();
|
||||||
int runModalWithPluginAndTarget(const EnginePlugin *plugin, const String &target);
|
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
|
* Creates a default save description for the specified slot. Depending
|
||||||
|
Loading…
x
Reference in New Issue
Block a user