diff options
author | Jaromir Wysoglad | 2019-07-18 23:43:37 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-09-01 22:47:55 +0300 |
commit | 788b15652db9c5d062520c3202d30c827fd6fe21 (patch) | |
tree | 51177f45e4f7498887d21b5a7022ba9d2aea8057 /backends/text-to-speech | |
parent | bb3346fba7c77ac4db1a9d4542da01ca3d12bc46 (diff) | |
download | scummvm-rg350-788b15652db9c5d062520c3202d30c827fd6fe21.tar.gz scummvm-rg350-788b15652db9c5d062520c3202d30c827fd6fe21.tar.bz2 scummvm-rg350-788b15652db9c5d062520c3202d30c827fd6fe21.zip |
TTS: Change String == "" to String.empty()
Diffstat (limited to 'backends/text-to-speech')
-rw-r--r-- | backends/text-to-speech/linux/linux-text-to-speech.cpp | 2 | ||||
-rw-r--r-- | backends/text-to-speech/windows/windows-text-to-speech.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/backends/text-to-speech/linux/linux-text-to-speech.cpp b/backends/text-to-speech/linux/linux-text-to-speech.cpp index 85faec1c1d..4b01b4478b 100644 --- a/backends/text-to-speech/linux/linux-text-to-speech.cpp +++ b/backends/text-to-speech/linux/linux-text-to-speech.cpp @@ -128,7 +128,7 @@ bool LinuxTextToSpeechManager::say(Common::String str, Common::String charset) { if (_speechState == BROKEN) return true; - if (charset == "") { + if (charset.empty()) { #ifdef USE_TRANSLATION charset = TransMan.getCurrentCharset(); #else diff --git a/backends/text-to-speech/windows/windows-text-to-speech.cpp b/backends/text-to-speech/windows/windows-text-to-speech.cpp index 506220a9c7..0625bc8d52 100644 --- a/backends/text-to-speech/windows/windows-text-to-speech.cpp +++ b/backends/text-to-speech/windows/windows-text-to-speech.cpp @@ -98,7 +98,7 @@ bool WindowsTextToSpeechManager::say(Common::String str, Common::String charset) return true; } - if (charset == "") { + if (charset.empty()) { #ifdef USE_TRANSLATION charset = TransMan.getCurrentCharset(); #else |