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
151151 \param key is the name of the option
152152 \result The specified option.
153153*/
154- std::string Config::get (const std::string &key) const
154+ const std::string & Config::get (const std::string &key) const
155155{
156156 return m_options->at (key);
157157}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class Config
5858 Options & getOptions ();
5959 const Options & getOptions () const ;
6060 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 ;
6262 std::string get (const std::string &key, const std::string &fallback) const ;
6363 void set (const std::string &key, const std::string &value);
6464 bool removeOption (const std::string &key);
You can’t perform that action at this time.
0 commit comments