Ver Fonte

2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Code cleanup
	* src/BtSetup.cc
Tatsuhiro Tsujikawa há 15 anos atrás
pai
commit
613e832dac
2 ficheiros alterados com 6 adições e 1 exclusões
  1. 5 0
      ChangeLog
  2. 1 1
      src/BtSetup.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2010-03-30  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Code cleanup
+	* src/BtSetup.cc
+
 2010-03-30  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Drop connection if same Peer ID has been already seen.

+ 1 - 1
src/BtSetup.cc

@@ -150,7 +150,7 @@ void BtSetup::setup(std::vector<Command*>& commands,
         unionCri->addSeedCriteria(cri);
       }
     }
-    if(unionCri->getSeedCriterion().size() > 0) {
+    if(!unionCri->getSeedCriterion().empty()) {
       SeedCheckCommand* c =
         new SeedCheckCommand(e->newCUID(), requestGroup, e, unionCri);
       c->setPieceStorage(pieceStorage);