virtual destructor
authorVictor Grishchenko <victor.grishchenko@gmail.com>
Thu, 4 Feb 2010 22:16:39 +0000 (23:16 +0100)
committerVictor Grishchenko <victor.grishchenko@gmail.com>
Thu, 4 Feb 2010 22:16:39 +0000 (23:16 +0100)
ext/seq_picker.cpp
swift.h

index dfaa20b..f6d4bbe 100644 (file)
@@ -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 (file)
--- 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<Address>        pex_in_;
+        std::deque<Address> 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() {}
     };