Coverity scan compiler fix
This commit is contained in:
parent
38d4fea995
commit
ff39c85a33
|
@ -223,16 +223,17 @@ void FMenuItem::delAccelerator (FWidget* obj)
|
||||||
auto root = getRootWidget();
|
auto root = getRootWidget();
|
||||||
|
|
||||||
if ( root
|
if ( root
|
||||||
&& ! root->getAcceleratorList().empty() )
|
&& ! root->setAcceleratorList().empty() )
|
||||||
{
|
{
|
||||||
auto iter = root->setAcceleratorList().begin();
|
auto list = root->setAcceleratorList();
|
||||||
|
auto iter = list.begin();
|
||||||
|
|
||||||
while ( iter != root->getAcceleratorList().end() )
|
while ( iter != list.end() )
|
||||||
{
|
{
|
||||||
if ( iter->object == obj )
|
if ( iter->object == obj )
|
||||||
{
|
{
|
||||||
accel_key = 0;
|
accel_key = 0;
|
||||||
iter = root->setAcceleratorList().erase(iter);
|
iter = list.erase(iter);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
++iter;
|
++iter;
|
||||||
|
|
Loading…
Reference in New Issue