Codecheck: 'const' for a literal parameter ... does not catch all instances

Bug #1554438 reported by GunChleoc
6
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,
                    const int baz,
                    const RGBColor& blah)

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.

Tags: codecheck
Revision history for this message
GunChleoc (gunchleoc) wrote :
Changed in widelands:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.