Commit 45fe1e1
committed
cfg/qt.cfg - Change the Q_D definition to avoid false positives
Change the O_D macro definition by moving the 'const' qualifier
to the front of the statement.
Without this change we get false positives "style: Variable 'd' can be
declared as pointer to const [constVariablePointer]"
The current definition follows Qt correctly as we see this
define in the `QtCore/qtclasshelpermacros.h` file:
Q_D(Class) Class##Private * const d = d_func()
but apparently cppcheck doesn't properly recognize that
as a const variable pointer.1 parent 6f50382 commit 45fe1e1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5315 | 5315 | | |
5316 | 5316 | | |
5317 | 5317 | | |
5318 | | - | |
| 5318 | + | |
5319 | 5319 | | |
5320 | 5320 | | |
5321 | 5321 | | |
| |||
0 commit comments