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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user