nicer constructor
authorVictor Grishchenko <victor.grishchenko@gmail.com>
Mon, 31 May 2010 12:34:52 +0000 (14:34 +0200)
committerVictor Grishchenko <victor.grishchenko@gmail.com>
Mon, 31 May 2010 12:34:52 +0000 (14:34 +0200)
swift.h

diff --git a/swift.h b/swift.h
index 77f8b6b..e87332e 100644 (file)
--- a/swift.h
+++ b/swift.h
@@ -129,7 +129,8 @@ namespace swift {
         callback_t  cb;
         /** aggregation level (do not report smaller events). */
         uint8_t     agg;
-        TransferProgressCallback(callback_t callback) : cb(callback), agg(0) {}
+        TransferProgressCallback(callback_t callback, uint8_t aggregate=0) 
+            : cb(callback), agg(aggregate) {}
         TransferProgressCallback() : cb(NULL), agg(0) {}
     };