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.
This commit is contained in:
Phenom 2017-07-26 10:52:40 +02:00 committed by csoler
parent 87947b1f21
commit 6219b3199b

View File

@ -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())