diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/statistics.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/statistics.hh b/base/statistics.hh index f6c421fb5..28c380602 100644 --- a/base/statistics.hh +++ b/base/statistics.hh @@ -2280,7 +2280,7 @@ struct StatBin : public GenBin enum { binned = true }; Bin() { allocate(sizeof(Storage)); } bool initialized() const { return true; } - void init(const Params ¶ms) { } + void init(Params ¶ms) { } int size() const { return 1; } @@ -2320,7 +2320,7 @@ struct StatBin : public GenBin VectorBin() : _size(0) {} bool initialized() const { return _size > 0; } - void init(int s, const Params ¶ms) { + void init(int s, Params ¶ms) { assert(!initialized()); assert(s > 0); _size = s; @@ -2379,7 +2379,7 @@ struct NoBin } bool initialized() const { return true; } - void init(const Params ¶ms) { + void init(Params ¶ms) { new (ptr) Storage(params); } int size() const{ return 1; } @@ -2420,7 +2420,7 @@ struct NoBin } bool initialized() const { return ptr != NULL; } - void init(int s, const Params ¶ms) { + void init(int s, Params ¶ms) { assert(s > 0 && "size must be positive!"); assert(!initialized()); _size = s; |