diff options
author | Tom Rondeau <trondeau@vt.edu> | 2013-03-05 16:08:08 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2013-03-05 16:08:08 -0500 |
commit | e2452caaf2e7f5fb640cda92b87f49f8f4d18c86 (patch) | |
tree | 417ce934b251ad7a9a86b1725b865ce82f4641ec /gnuradio-core/src/lib/general/gr_prefs.cc | |
parent | b279da79d17ab8cd1bb011c5e6c0305c2a506462 (diff) | |
parent | bf343e58bc5b4ef026bb4c8722312a6f123becf2 (diff) |
Merge branch 'master' into next
Conflicts:
gnuradio-core/src/lib/general/gr_prefs.cc
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, ""); |