summaryrefslogtreecommitdiff
path: root/src/Netrc.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-05-13 14:15:23 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-05-13 14:15:23 +0000
commit386d19693bc3b06bea14f8fa606f513b6fe1ac9d (patch)
tree0137a837f6ce609ac1319b859a5333e0753f7527 /src/Netrc.cc
parent9d03f0d2f747c7c66a64081a7cabcf4e02c11020 (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/Netrc.cc')
-rw-r--r--src/Netrc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Netrc.cc b/src/Netrc.cc
index b593049d..b025ece3 100644
--- a/src/Netrc.cc
+++ b/src/Netrc.cc
@@ -56,7 +56,7 @@ void Netrc::skipMacdef(std::ifstream& f) const
std::string line;
getline(f, line);
while(getline(f, line)) {
- if(line == "\r" || line == "") {
+ if(line == "\r" || line.empty()) {
break;
}
}