diff options
author | Jaromir Wysoglad | 2019-08-15 13:24:01 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-09-01 22:47:55 +0300 |
commit | c402666635b17e6a4b4603f7cfa48d6755e2bfef (patch) | |
tree | fc2515c88d10a08dfc68889e57b5f19aed603ce0 /gui | |
parent | 07acdb84336380b6de1cf72a27116b3b60ee3599 (diff) | |
download | scummvm-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')
-rw-r--r-- | gui/options.cpp | 2 |
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()) |