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
@@ -1060,7 +1060,7 @@ inline wxULongLong operator+(unsigned long l, const wxULongLong& ull) { return u
|
||||
|
||||
inline wxLongLong operator-(unsigned long l, const wxULongLong& ull)
|
||||
{
|
||||
wxULongLong ret = wxULongLong(l) - ull;
|
||||
const wxULongLong ret = wxULongLong(l) - ull;
|
||||
return wxLongLong((wxInt32)ret.GetHi(),ret.GetLo());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user