diff options
Diffstat (limited to 'gnuradio-core/src/lib/general/gr_prefs.cc')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_prefs.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gnuradio-core/src/lib/general/gr_prefs.cc b/gnuradio-core/src/lib/general/gr_prefs.cc index 1308949fa8..5d9544f112 100644 --- a/gnuradio-core/src/lib/general/gr_prefs.cc +++ b/gnuradio-core/src/lib/general/gr_prefs.cc @@ -132,14 +132,14 @@ gr_prefs::option_to_env(std::string section, std::string option) } bool -gr_prefs::has_section(const std::string section) +gr_prefs::has_section(const std::string §ion) { size_t t = d_configs.find("[" + section + "]#"); return t != std::string::npos; } bool -gr_prefs::has_option(const std::string section, const std::string option) +gr_prefs::has_option(const std::string §ion, const std::string &option) { if(option_to_env(section, option)) return true; @@ -155,8 +155,8 @@ gr_prefs::has_option(const std::string section, const std::string option) } const std::string -gr_prefs::get_string(const std::string section, const std::string option, - const std::string default_val) +gr_prefs::get_string(const std::string §ion, const std::string &option, + const std::string &default_val) { char *env = option_to_env(section, option); if(env) @@ -179,7 +179,7 @@ gr_prefs::get_string(const std::string section, const std::string option, } bool -gr_prefs::get_bool(const std::string section, const std::string option, bool default_val) +gr_prefs::get_bool(const std::string §ion, const std::string &option, bool default_val) { if(has_option(section, option)) { std::string str = get_string(section, option, ""); @@ -200,7 +200,7 @@ gr_prefs::get_bool(const std::string section, const std::string option, bool def } long -gr_prefs::get_long(const std::string section, const std::string option, long default_val) +gr_prefs::get_long(const std::string §ion, const std::string &option, long default_val) { if(has_option(section, option)) { std::string str = get_string(section, option, ""); @@ -218,7 +218,7 @@ gr_prefs::get_long(const std::string section, const std::string option, long def } double -gr_prefs::get_double(const std::string section, const std::string option, double default_val) +gr_prefs::get_double(const std::string §ion, const std::string &option, double default_val) { if(has_option(section, option)) { std::string str = get_string(section, option, ""); |