Skip to content

Commit 1ce219a

Browse files
committed
[LINT] error 650
Constant '-1' out of range for operator '!=' Signed-off-by: Jocelyn Legault <jocelynlegault@gmail.com>
1 parent 3be0a98 commit 1ce219a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

PythonScript/src/MenuManager.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ HMENU MenuManager::getOurMenu()
250250
int iMenuItems = GetMenuItemCount(hPluginMenu);
251251
for ( int i = 0; i < iMenuItems; i++ )
252252
{
253+
//lint -e650
254+
// Thanks MS for having a function that returns a UNIT potentially returning -1 >:-(
255+
// How that makes sense is beyond me.
253256
HMENU hSubMenu = ::GetSubMenu(hPluginMenu, i);
254257
// does our About menu command exist here?
255258
if ( ::GetMenuState(hSubMenu, m_funcItems[0]._cmdID, MF_BYCOMMAND) != -1 )
@@ -258,6 +261,7 @@ HMENU MenuManager::getOurMenu()
258261
m_pythonPluginMenu = hSubMenu;
259262
break;
260263
}
264+
//lint +e650
261265
}
262266
}
263267

0 commit comments

Comments
 (0)