diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-05-13 14:15:23 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-05-13 14:15:23 +0000 |
| commit | 386d19693bc3b06bea14f8fa606f513b6fe1ac9d (patch) | |
| tree | 0137a837f6ce609ac1319b859a5333e0753f7527 /src/a2functional.h | |
| parent | 9d03f0d2f747c7c66a64081a7cabcf4e02c11020 (diff) | |
2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Replaced "" with static const variable A2STR::NIL.
Replaced string comparison against "" with std::string::empty().
Added PROTO_* to Request class and use them as a protocol string
constant.
Made "started", "stopped", "completed" static const variable in
AnnounceList class.
Diffstat (limited to 'src/a2functional.h')
| -rw-r--r-- | src/a2functional.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/a2functional.h b/src/a2functional.h index 99a55268..15f4acc2 100644 --- a/src/a2functional.h +++ b/src/a2functional.h @@ -37,6 +37,7 @@ #include <functional> #include "SharedHandle.h" +#include "A2STR.h" #include <string> namespace aria2 { @@ -143,7 +144,7 @@ class Concat { private: std::string _delim; public: - Concat(const std::string& delim = ""):_delim(delim) {} + Concat(const std::string& delim = A2STR::NIL):_delim(delim) {} std::string operator()(const std::string& s1, const std::string& s2) const { |
