From 788b15652db9c5d062520c3202d30c827fd6fe21 Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Thu, 18 Jul 2019 23:43:37 +0200 Subject: TTS: Change String == "" to String.empty() --- backends/text-to-speech/linux/linux-text-to-speech.cpp | 2 +- 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 -- cgit v1.2.3