2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-03 07:25:18 +00:00

[2726] Suppress another false positive

This commit is contained in:
Michal 'vorner' Vaner
2013-06-12 12:31:04 +02:00
parent 9f797b9baa
commit 21034c5291

View File

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