Cppcheck warnings.
--HG-- branch : develop
This commit is contained in:
parent
e3b6a788e2
commit
ed6e0afd17
|
@ -147,6 +147,18 @@ bool NotArrangedDetail(QMap<uint, QMultiMap<qint64, int>> &container, QMap<uint,
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
int TakeFirstForPriority(const QMap<uint, QHash<int, qint64>> &container, uint priority)
|
||||
{
|
||||
const QHash<int, qint64> priorityGroup = container.value(priority);
|
||||
if (not priorityGroup.isEmpty())
|
||||
{
|
||||
return priorityGroup.constBegin().key();
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -541,9 +553,7 @@ void VBank::PrepareDescGroup(uint priority)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
int VBank::GetNextThreeGroups(uint priority) const
|
||||
{
|
||||
int next = -1;
|
||||
|
||||
next = TakeFirstForPriority(big, priority);
|
||||
int next = TakeFirstForPriority(big, priority);
|
||||
if (next != -1)
|
||||
{
|
||||
return next;
|
||||
|
@ -562,9 +572,7 @@ int VBank::GetNextThreeGroups(uint priority) const
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
int VBank::GetNextTwoGroups(uint priority) const
|
||||
{
|
||||
int next = -1;
|
||||
|
||||
next = TakeFirstForPriority(big, priority);
|
||||
int next = TakeFirstForPriority(big, priority);
|
||||
if (next != -1)
|
||||
{
|
||||
return next;
|
||||
|
@ -611,18 +619,6 @@ void VBank::SqMaxMin(qint64 &sMax, qint64 &sMin, uint priority) const
|
|||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
int VBank::TakeFirstForPriority(const QMap<uint, QHash<int, qint64>> &container, uint priority) const
|
||||
{
|
||||
const QHash<int, qint64> priorityGroup = container.value(priority);
|
||||
if (not priorityGroup.isEmpty())
|
||||
{
|
||||
return priorityGroup.constBegin().key();
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
bool VBank::ArrangedDetail(QMap<uint, QHash<int, qint64>> &container, int i)
|
||||
{
|
||||
|
|
|
@ -115,7 +115,6 @@ private:
|
|||
int GetNextDescGroup(uint priority) const;
|
||||
|
||||
void SqMaxMin(qint64 &sMax, qint64 &sMin, uint priority) const;
|
||||
int TakeFirstForPriority(const QMap<uint, QHash<int, qint64>> &container, uint priority) const;
|
||||
|
||||
bool ArrangedDetail(QMap<uint, QHash<int, qint64>> &container, int i);
|
||||
bool ArrangedDetail(QMap<uint, QMultiMap<qint64, int>> &container, int i);
|
||||
|
|
Loading…
Reference in New Issue
Block a user