QRingBuffer: make constructor explicit
authorMarc Mutz <marc.mutz@kdab.com>
Tue, 28 Feb 2012 21:52:41 +0000 (22:52 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Feb 2012 23:05:38 +0000 (00:05 +0100)
commitaac821c220662ec9d1acbf88ac82603bbda3cee8
treedf64d19d7037d99ddee317f4174cf60f8403eb5b
parent1e3015d8f4c5b3c04e412dfa8f87def0922c52d9
QRingBuffer: make constructor explicit

This is a private class, but it's so close to
the classical Stack(int) example for explicit
that I just have to make this ctor explicit,
too:

   QRingBuffer rb = 0; // oops: meant '*rb'

now no longer compiles.

Change-Id: I7d58c1f08c1b14d14930426159c5c8db71b4cf4d
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/corelib/tools/qringbuffer_p.h