diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-02-28 12:30:11 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-02-28 12:30:11 +0000 |
| commit | c342bde9627b434effbc0cd10b817670d1da0923 (patch) | |
| tree | 60d14bf448066b8dcd639adfa0db716d5a8258c8 /src/AbstractBtMessage.cc | |
| parent | 135f0a2a8c4ee04a5e96d84ba558245fabfc1f5c (diff) | |
2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use vector instead of deque for containers which is used for
mostly read-only purpose.
Diffstat (limited to 'src/AbstractBtMessage.cc')
| -rw-r--r-- | src/AbstractBtMessage.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/AbstractBtMessage.cc b/src/AbstractBtMessage.cc index 7e6f84bc..793778e3 100644 --- a/src/AbstractBtMessage.cc +++ b/src/AbstractBtMessage.cc @@ -59,12 +59,10 @@ void AbstractBtMessage::setPeer(const SharedHandle<Peer>& peer) this->peer = peer; } -bool AbstractBtMessage::validate(std::deque<std::string>& errors) +void AbstractBtMessage::validate() { if(validator.get()) { - return validator->validate(errors); - } else { - return true; + validator->validate(); } } |
