diff options
Diffstat (limited to 'gnuradio-runtime/lib/prefs.cc')
-rw-r--r-- | gnuradio-runtime/lib/prefs.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnuradio-runtime/lib/prefs.cc b/gnuradio-runtime/lib/prefs.cc index f59a2346f7..4173973c2e 100644 --- a/gnuradio-runtime/lib/prefs.cc +++ b/gnuradio-runtime/lib/prefs.cc @@ -243,7 +243,7 @@ bool prefs::get_bool(const std::string& section, { if (has_option(section, option)) { std::string str = get_string(section, option, ""); - if (str == "") { + if (str.empty()) { return default_val; } std::transform(str.begin(), str.end(), str.begin(), ::tolower); @@ -281,7 +281,7 @@ long prefs::get_long(const std::string& section, { if (has_option(section, option)) { std::string str = get_string(section, option, ""); - if (str == "") { + if (str.empty()) { return default_val; } std::stringstream sstr(str); @@ -316,7 +316,7 @@ double prefs::get_double(const std::string& section, { if (has_option(section, option)) { std::string str = get_string(section, option, ""); - if (str == "") { + if (str.empty()) { return default_val; } std::stringstream sstr(str); |