Use const for constant local variables in wxWidgets headers
This avoids warnings from MSVS 2017 static analyzer when C++ core rule set is activated. Closes https://github.com/wxWidgets/wxWidgets/pull/819
This commit is contained in:
committed by
Vadim Zeitlin
parent
2fc20abbdd
commit
8dfd799fd5
@@ -47,7 +47,7 @@ public:
|
||||
if (it == m_methods.end())
|
||||
return false;
|
||||
wxShadowObjectMethod method = it->second;
|
||||
int ret = (*method)(window, param);
|
||||
const int ret = (*method)(window, param);
|
||||
if (returnValue)
|
||||
*returnValue = ret;
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user