Parcourir la source

[2726] Suppress another false positive

Michal 'vorner' Vaner il y a 12 ans
Parent
commit
21034c5291
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/lib/dns/rdata.cc

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

@@ -309,6 +309,8 @@ 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&
 Generic::operator=(const Generic& source) {
     if (impl_ == source.impl_) {