mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
87947b1f21
commit
6219b3199b
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user