Browse Source

[3036] Suppress the cppcheck errors regarding check for assignment to self.

Marcin Siodelski 11 years ago
parent
commit
aad0b789f4
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/lib/dhcp/option6_client_fqdn.cc

+ 5 - 2
src/lib/dhcp/option6_client_fqdn.cc

@@ -143,8 +143,8 @@ Option6ClientFqdnImpl(const Option6ClientFqdnImpl& source)
 }
 
 Option6ClientFqdnImpl&
-// This assignment operator handles assignment to self. It uses copy
-// constructor of Option6ClientFqdnImpl to copy all required values.
+// This assignment operator handles assignment to self, it copies all
+// required values.
 // cppcheck-suppress operatorEqToSelf
 Option6ClientFqdnImpl::operator=(const Option6ClientFqdnImpl& source) {
     if (source.domain_name_) {
@@ -301,6 +301,9 @@ Option6ClientFqdn::Option6ClientFqdn(const Option6ClientFqdn& source)
 }
 
 Option6ClientFqdn&
+// This assignment operator handles assignment to self, it uses copy
+// constructor of Option6ClientFqdnImpl to copy all required values.
+// cppcheck-suppress operatorEqToSelf
 Option6ClientFqdn::operator=(const Option6ClientFqdn& source) {
     Option6ClientFqdnImpl* old_impl = impl_;
     impl_ = new Option6ClientFqdnImpl(*source.impl_);