diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-10 23:35:30 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-10 20:26:01 -0700 |
commit | ff1205d2b89f7f2273a32176c746f36836d7bfa9 (patch) | |
tree | 9174cd93bbc3445b027a04637f76b67948a85eab /src/main.cpp | |
parent | d99b00a149e7828adb3c4651069483e51b0b458b (diff) | |
download | mana-ff1205d2b89f7f2273a32176c746f36836d7bfa9.tar.gz mana-ff1205d2b89f7f2273a32176c746f36836d7bfa9.tar.bz2 mana-ff1205d2b89f7f2273a32176c746f36836d7bfa9.tar.xz mana-ff1205d2b89f7f2273a32176c746f36836d7bfa9.zip |
Use string::empty() instead of comparing to ""
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7f2012c9..c68c02d8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -975,7 +975,8 @@ int main(int argc, char *argv[]) nextState); positionDialog(currentDialog, screenWidth, screenHeight); - if (options.chooseDefault || options.playername != "") + if (options.chooseDefault + || !options.playername.empty()) { ((ServerSelectDialog*) currentDialog)->action( gcn::ActionEvent(NULL, "ok")); |