File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ bool Config::hasOption(const std::string &key) const
151
151
\param key is the name of the option
152
152
\result The specified option.
153
153
*/
154
- std::string Config::get (const std::string &key) const
154
+ const std::string & Config::get (const std::string &key) const
155
155
{
156
156
return m_options->at (key);
157
157
}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class Config
58
58
Options & getOptions ();
59
59
const Options & getOptions () const ;
60
60
bool hasOption (const std::string &key) const ;
61
- std::string get (const std::string &key) const ;
61
+ const std::string & get (const std::string &key) const ;
62
62
std::string get (const std::string &key, const std::string &fallback) const ;
63
63
void set (const std::string &key, const std::string &value);
64
64
bool removeOption (const std::string &key);
You can’t perform that action at this time.
0 commit comments