return a const String& in Option::name()

This commit is contained in:
Maxime Coste 2014-04-09 19:33:37 +01:00
parent e0424ba017
commit 19868f01c8

View File

@ -39,7 +39,7 @@ public:
virtual void set_from_string(const String& str) = 0;
virtual void add_from_string(const String& str) = 0;
String name() const { return m_name; }
const String& name() const { return m_name; }
OptionManager& manager() const { return m_manager; }
virtual Option* clone(OptionManager& manager) const = 0;