From: Victor Grishchenko Date: Thu, 4 Feb 2010 22:16:39 +0000 (+0100) Subject: virtual destructor X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=1a71e95c4529f3425a503943098fff48bceec957;p=swift-upb.git virtual destructor --- diff --git a/ext/seq_picker.cpp b/ext/seq_picker.cpp index dfaa20b..f6d4bbe 100644 --- a/ext/seq_picker.cpp +++ b/ext/seq_picker.cpp @@ -27,6 +27,7 @@ public: transfer_(file_to_pick_from), ack_hint_out_(), twist_(0) { ack_hint_out_.copy_range(file().ack_out(),bin64_t::ALL); } + virtual ~SeqPiecePicker() {} HashTree& file() { return transfer_->file(); diff --git a/swift.h b/swift.h index 0571f92..cbdd734 100644 --- a/swift.h +++ b/swift.h @@ -185,7 +185,7 @@ namespace swift { /** Channels working for this transfer. */ binqueue hs_in_; int hs_in_offset_; - std::deque
pex_in_; + std::deque
pex_in_; /** Messages we are accepting. */ uint64_t cap_out_; @@ -219,6 +219,7 @@ namespace swift { * @param expires (not used currently) when to consider request expired * @return the bin number to request */ virtual bin64_t Pick (binmap_t& offered, uint64_t max_width, tint expires) = 0; + virtual ~PiecePicker() {} };