Codecheck: 'const' for a literal parameter ... does not catch all instances
Bug #1554438 reported by
GunChleoc
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Won't Fix
|
Low
|
Unassigned |
Bug Description
In this function:
void foo(const int bar,
I will get the following codecheck error:
'const' for a literal parameter is an implementation detail. Remove the const from the interface definition.
However, with this function:
void foo(const int bar, const int baz, const RGBColor& blah)
no error is triggered.
To post a comment you must log in.
Migrated to https:/ /github. com/widelands/ widelands/ issues/ 1622