From c44cb3246dfa526eeb68fb2c3ca41f12f67f78ab Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 15 Dec 2013 22:35:17 +0100 Subject: util/DynamicFifoBuffer: make constructor "explicit" --- src/util/DynamicFifoBuffer.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/DynamicFifoBuffer.hxx b/src/util/DynamicFifoBuffer.hxx index ead7389e9..df50328b4 100644 --- a/src/util/DynamicFifoBuffer.hxx +++ b/src/util/DynamicFifoBuffer.hxx @@ -57,7 +57,7 @@ protected: T *data; public: - DynamicFifoBuffer(size_type _capacity) + explicit DynamicFifoBuffer(size_type _capacity) :head(0), tail(0), capacity(_capacity), data(new T[capacity]) {} ~DynamicFifoBuffer() { -- cgit v1.2.3