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