]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2726] Make the suppression so cppcheck finds it
authorMichal 'vorner' Vaner <vorner@vorner.cz>
Fri, 14 Jun 2013 07:35:09 +0000 (09:35 +0200)
committerMichal 'vorner' Vaner <vorner@vorner.cz>
Fri, 14 Jun 2013 07:35:09 +0000 (09:35 +0200)
src/lib/dns/rdata.cc

index b71df632ce48c69a82dfaa79c96ef075d6b84312..f42c349f2d574d076437aaf69bb8ce79d4136493 100644 (file)
@@ -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.
 Generic&
+// 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);