From 6219b3199b6488ede9c740d45c28737c6b2961f7 Mon Sep 17 00:00:00 2001 From: Phenom Date: Wed, 26 Jul 2017 10:52:40 +0200 Subject: [PATCH] Fix CppCheck in pqiqos.h /libretroshare/src/pqi/pqiqos.h:62: warning: Cppcheck(uninitMemberVar): Member variable 'ItemQueue::_threshold' is not initialized in the constructor. /libretroshare/src/pqi/pqiqos.h:62: warning: Cppcheck(uninitMemberVar): Member variable 'ItemQueue::_counter' is not initialized in the constructor. /libretroshare/src/pqi/pqiqos.h:62: warning: Cppcheck(uninitMemberVar): Member variable 'ItemQueue::_inc' is not initialized in the constructor. --- libretroshare/src/pqi/pqiqos.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/pqi/pqiqos.h b/libretroshare/src/pqi/pqiqos.h index a83ec1445..3a006b5a0 100644 --- a/libretroshare/src/pqi/pqiqos.h +++ b/libretroshare/src/pqi/pqiqos.h @@ -60,9 +60,11 @@ public: { public: ItemQueue() - { - _item_count =0 ; - } + : _threshold(0.0) + , _counter(0.0) + , _inc(0.0) + , _item_count(0) + {} void *pop() { if(_items.empty())