diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-05-18 10:33:06 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-05-18 10:33:06 +0000 |
| commit | e1c1c010b877e3713743558a4abfb9854a0dabc3 (patch) | |
| tree | 737f193577a6016aab932e030390cfb258685edc /src/HttpHeader.h | |
| parent | a0f8685de357bc015d49dd4444bab5e51d7e9e71 (diff) | |
2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Make HttpHeader::getFirst(...) return const reference.
* src/HttpHeader.cc
* src/HttpHeader.h
Diffstat (limited to 'src/HttpHeader.h')
| -rw-r--r-- | src/HttpHeader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HttpHeader.h b/src/HttpHeader.h index 2b96feda..c11862e7 100644 --- a/src/HttpHeader.h +++ b/src/HttpHeader.h @@ -62,7 +62,7 @@ public: void put(const std::string& name, const std::string& value); bool defined(const std::string& name) const; - std::string getFirst(const std::string& name) const; + const std::string& getFirst(const std::string& name) const; std::deque<std::string> get(const std::string& name) const; unsigned int getFirstAsUInt(const std::string& name) const; uint64_t getFirstAsULLInt(const std::string& name) const; |
