BIND 10 trac3036, updated. aad0b789f4f82e50e219debc7d6d52675d7c85e0 [3036] Suppress the cppcheck errors regarding check for assignment to self.

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Aug 20 06:48:28 UTC 2013


The branch, trac3036 has been updated
       via  aad0b789f4f82e50e219debc7d6d52675d7c85e0 (commit)
      from  586809ac7369b85efe135f62b6281e141d88bfdb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit aad0b789f4f82e50e219debc7d6d52675d7c85e0
Author: Marcin Siodelski <marcin at isc.org>
Date:   Tue Aug 20 08:47:56 2013 +0200

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

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dhcp/option6_client_fqdn.cc |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/option6_client_fqdn.cc b/src/lib/dhcp/option6_client_fqdn.cc
index ff2efe6..761acae 100644
--- a/src/lib/dhcp/option6_client_fqdn.cc
+++ b/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_);



More information about the bind10-changes mailing list