Browse Source

[2726] Make the suppression so cppcheck finds it

Michal 'vorner' Vaner 12 years ago
parent
commit
c855ce32bf
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/dns/rdata.cc

+ 3 - 2
src/lib/dns/rdata.cc

@@ -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);