diff options
author | Max Horn | 2006-03-28 09:42:54 +0000 |
---|---|---|
committer | Max Horn | 2006-03-28 09:42:54 +0000 |
commit | 9f93e5bb81a54a98eb7957209662f152e2962679 (patch) | |
tree | ffd439f7aa7347bd7ba806c2131be458a7112ef1 /engines/scumm | |
parent | 950c3451a2dbadffa6437e98a20eb3a4163216e2 (diff) | |
download | scummvm-rg350-9f93e5bb81a54a98eb7957209662f152e2962679.tar.gz scummvm-rg350-9f93e5bb81a54a98eb7957209662f152e2962679.tar.bz2 scummvm-rg350-9f93e5bb81a54a98eb7957209662f152e2962679.zip |
Renamed various container isEmpty() methods to empty() to match STL conventions
svn-id: r21472
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/dialogs.cpp | 12 | ||||
-rw-r--r-- | engines/scumm/resource.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp index d29b56fa9e..d1d23c2902 100644 --- a/engines/scumm/dialogs.cpp +++ b/engines/scumm/dialogs.cpp @@ -303,7 +303,7 @@ void SaveLoadChooser::handleCommand(CommandSender *sender, uint32 cmd, uint32 da case GUI::kListItemActivatedCmd: case GUI::kListItemDoubleClickedCmd: if (selItem >= 0) { - if (_saveMode || !getResultString().isEmpty()) { + if (_saveMode || !getResultString().empty()) { setResult(selItem); close(); } @@ -316,7 +316,7 @@ void SaveLoadChooser::handleCommand(CommandSender *sender, uint32 cmd, uint32 da // Disable button if nothing is selected, or (in load mode) if an empty // list item is selected. We allow choosing an empty item in save mode // because we then just assign a default name. - _chooseButton->setEnabled(selItem >= 0 && (_saveMode || !getResultString().isEmpty())); + _chooseButton->setEnabled(selItem >= 0 && (_saveMode || !getResultString().empty())); _chooseButton->draw(); break; default: @@ -434,7 +434,7 @@ void SaveLoadChooserEx::handleCommand(CommandSender *sender, uint32 cmd, uint32 case GUI::kListItemActivatedCmd: case GUI::kListItemDoubleClickedCmd: if (selItem >= 0) { - if (_saveMode || !getResultString().isEmpty()) { + if (_saveMode || !getResultString().empty()) { _list->endEditMode(); setResult(selItem); close(); @@ -498,7 +498,7 @@ void SaveLoadChooserEx::handleCommand(CommandSender *sender, uint32 cmd, uint32 // Disable button if nothing is selected, or (in load mode) if an empty // list item is selected. We allow choosing an empty item in save mode // because we then just assign a default name. - _chooseButton->setEnabled(selItem >= 0 && (_saveMode || !getResultString().isEmpty())); + _chooseButton->setEnabled(selItem >= 0 && (_saveMode || !getResultString().empty())); _chooseButton->draw(); } break; case kCloseCmd: @@ -608,10 +608,10 @@ void MainMenuDialog::save() { _saveDialog->setList(generateSavegameList(_vm, true)); idx = _saveDialog->runModal(); if (idx >= 0) { - const String &result = _saveDialog->getResultString(); + String result(_saveDialog->getResultString()); char buffer[20]; const char *str; - if (result.isEmpty()) { + if (result.empty()) { // If the user was lazy and entered no save name, come up with a default name. sprintf(buffer, "Save %d", idx + 1); str = buffer; diff --git a/engines/scumm/resource.cpp b/engines/scumm/resource.cpp index 897459c8be..4dce417216 100644 --- a/engines/scumm/resource.cpp +++ b/engines/scumm/resource.cpp @@ -286,7 +286,7 @@ void ScummEngine::readRoomsOffsets() { bool ScummEngine::openFile(BaseScummFile &file, const char *filename, bool resourceFile) { bool result = false; - if (!_containerFile.isEmpty()) { + if (!_containerFile.empty()) { char name[128]; file.close(); |