Skip to content

Commit e240ffb

Browse files
committed
[LINT] error 838
Previously assigned value to variable 'Symbol' has not been used. Signed-off-by: Jocelyn Legault <[email protected]>
1 parent 826b0ee commit e240ffb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

PythonScript/src/MenuManager.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -876,8 +876,6 @@ int MenuManager::findPluginCommand(const TCHAR *pluginName, const TCHAR *menuOpt
876876

877877
int MenuManager::findMenuCommand(const TCHAR *menuName, const TCHAR *menuOption, bool refreshCache)
878878
{
879-
int retVal = 0;
880-
881879
if (!refreshCache)
882880
{
883881
MenuCommandCacheTD::iterator it = m_menuCommandCache.find(std::pair<tstring, tstring>(tstring(menuName), tstring(menuOption)));
@@ -888,7 +886,7 @@ int MenuManager::findMenuCommand(const TCHAR *menuName, const TCHAR *menuOption,
888886
}
889887

890888
HMENU hMenuBar = ::GetMenu(m_hNotepad);
891-
retVal = findMenuCommand(hMenuBar, menuName, menuOption);
889+
int retVal = findMenuCommand(hMenuBar, menuName, menuOption);
892890

893891
if (retVal != 0)
894892
{

0 commit comments

Comments
 (0)