Tweak non-const method warning
They shouldn't necessarily be const, it's just usually a good idea.
This commit is contained in:
parent
7d5dd3bfde
commit
eb8cbd8c2c
|
@ -39,7 +39,7 @@ class ObjectConstCheck : BaseAnalyzer
|
||||||
{
|
{
|
||||||
addErrorMessage(d.functionDeclaration.name.line,
|
addErrorMessage(d.functionDeclaration.name.line,
|
||||||
d.functionDeclaration.name.column, "Methods 'opCmp', 'toHash',"
|
d.functionDeclaration.name.column, "Methods 'opCmp', 'toHash',"
|
||||||
~ " 'opEquals', and 'toString' should be declared const.");
|
~ " 'opEquals', and 'toString' are non-const.");
|
||||||
}
|
}
|
||||||
d.accept(this);
|
d.accept(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue