ALL: Reduce assignment of "" to Common::String.
When clearing an existant object clear() should be used. When constructing objects (or using default values for parameters) the constructor of String without any argument should be used. This changes only a few instances I noticed while looking over some recent commit logs.
This commit is contained in:
parent
a41d72a44a
commit
3a196478c6
5 changed files with 7 additions and 7 deletions
|
@ -92,7 +92,7 @@ int SaveLoadChooser::runModalWithPluginAndTarget(const EnginePlugin *plugin, con
|
|||
_thumbnailSupport = _metaInfoSupport && (*_plugin)->hasFeature(MetaEngine::kSavesSupportThumbnail);
|
||||
_saveDateSupport = _metaInfoSupport && (*_plugin)->hasFeature(MetaEngine::kSavesSupportCreationDate);
|
||||
_playTimeSupport = _metaInfoSupport && (*_plugin)->hasFeature(MetaEngine::kSavesSupportPlayTime);
|
||||
_resultString = "";
|
||||
_resultString.clear();
|
||||
reflowLayout();
|
||||
updateSaveList();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue