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.
This commit is contained in:
Tatsuhiro Tsujikawa
2008-05-13 14:15:23 +00:00
parent 9d03f0d2f7
commit 386d19693b
59 changed files with 308 additions and 122 deletions

View File

@@ -121,7 +121,7 @@ PStringDatumHandle ParameterizedStringParser::createLoop(const std::string& src,
loopStr.erase(colonIndex);
}
std::pair<std::string, std::string> range = Util::split(loopStr, "-");
if(range.first == "" || range.second == "") {
if(range.first.empty() || range.second.empty()) {
throw FatalException("Loop range missing.");
}
NumberDecoratorHandle nd;