Commit aad0b789 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

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

parent 586809ac
......@@ -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_);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment