aboutsummaryrefslogtreecommitdiff
path: root/gui/options.cpp
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-08-15 13:24:01 +0200
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commitc402666635b17e6a4b4603f7cfa48d6755e2bfef (patch)
treefc2515c88d10a08dfc68889e57b5f19aed603ce0 /gui/options.cpp
parent07acdb84336380b6de1cf72a27116b3b60ee3599 (diff)
downloadscummvm-rg350-c402666635b17e6a4b4603f7cfa48d6755e2bfef.tar.gz
scummvm-rg350-c402666635b17e6a4b4603f7cfa48d6755e2bfef.tar.bz2
scummvm-rg350-c402666635b17e6a4b4603f7cfa48d6755e2bfef.zip
TTS: Refactoring
Refactoring as suggested by bluegr on github.
Diffstat (limited to 'gui/options.cpp')
-rw-r--r--gui/options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index 68053dd4bc..9e77aaa4cb 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -1807,7 +1807,7 @@ void GlobalOptionsDialog::build() {
for(unsigned i = 0; i < voices.size(); i++) {
_ttsVoiceSelectionPopUp->appendEntry(voices[i].getDescription(), i);
}
- if (voices.size() == 0)
+ if (voices.empty())
_ttsVoiceSelectionPopUp->appendEntry("None", 0);
if (ConfMan.hasKey("tts_voice") && (unsigned) ConfMan.getInt("tts_voice", _domain) < voices.size())