diff options
author | Max Horn | 2006-07-23 15:08:48 +0000 |
---|---|---|
committer | Max Horn | 2006-07-23 15:08:48 +0000 |
commit | 4fcdbb93497d30de4c0fc606b3bbddeabdbb4746 (patch) | |
tree | 9c6b98d81c004a191e0c00fa8651e02eab98e593 /gui/newgui.cpp | |
parent | 602548cea32612c791ba1951e21f0bdc87ae616d (diff) | |
download | scummvm-rg350-4fcdbb93497d30de4c0fc606b3bbddeabdbb4746.tar.gz scummvm-rg350-4fcdbb93497d30de4c0fc606b3bbddeabdbb4746.tar.bz2 scummvm-rg350-4fcdbb93497d30de4c0fc606b3bbddeabdbb4746.zip |
String class usage cleanup
svn-id: r23582
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r-- | gui/newgui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 819b6728f7..14aeff06c1 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -60,7 +60,7 @@ GuiObject::GuiObject(const Common::String &name) : _firstWidget(0) { } void GuiObject::handleScreenChanged() { - if (_name != "") { + if (!_name.empty()) { if ((_x = g_gui.evaluator()->getVar(_name + ".x")) == EVAL_UNDEF_VAR) error("Undefined variable %s.x", _name.c_str()); if ((_y = g_gui.evaluator()->getVar(_name + ".y")) == EVAL_UNDEF_VAR) |