Commit c855ce32 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2726] Make the suppression so cppcheck finds it

parent 11cdeec0
......@@ -309,9 +309,10 @@ Generic::Generic(const Generic& source) :
Rdata(), impl_(new GenericImpl(*source.impl_))
// cppcheck-suppress operatorEqToSelf this check is better than
// this == &source, just that cppcheck doesn't understand it.
// Our check is better than the usual if (this == &source),
// but cppcheck doesn't recognize it.
// cppcheck-suppress operatorEqToSelf
Generic::operator=(const Generic& source) {
if (impl_ == source.impl_) {
return (*this);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment