summaryrefslogtreecommitdiff
path: root/src/Option.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-05-18 10:14:53 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-05-18 10:14:53 +0000
commit0a95211100736cabe19428eb73383cb5b8062e37 (patch)
treea88367b57e7eaf52a094a93a5ff20eef6bc505d1 /src/Option.h
parente4b0446c610bf4bba4537901adbfb6f2a714a167 (diff)
2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Made Option::get(...) return const reference of std::string. * src/Option.cc * src/Option.h
Diffstat (limited to 'src/Option.h')
-rw-r--r--src/Option.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Option.h b/src/Option.h
index aa4ca1e8..f95ee373 100644
--- a/src/Option.h
+++ b/src/Option.h
@@ -50,7 +50,7 @@ public:
void put(const std::string& name, const std::string& value);
bool defined(const std::string& name) const;
- std::string get(const std::string& name) const;
+ const std::string& get(const std::string& name) const;
int getAsInt(const std::string& name) const;
int64_t getAsLLInt(const std::string& name) const;
bool getAsBool(const std::string& name) const;