From 19868f01c8431b4ff253e264d32725df4cd75622 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 9 Apr 2014 19:33:37 +0100 Subject: [PATCH] return a const String& in Option::name() --- src/option_manager.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/option_manager.hh b/src/option_manager.hh index ae73e4f8..123d1d7d 100644 --- a/src/option_manager.hh +++ b/src/option_manager.hh @@ -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;