mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
clang-tidy: fix bugprone-unhandled-self-assignment lint
This commit is contained in:
@@ -40,11 +40,13 @@ cmSourceGroup::cmSourceGroup(cmSourceGroup const& r)
|
||||
|
||||
cmSourceGroup& cmSourceGroup::operator=(cmSourceGroup const& r)
|
||||
{
|
||||
if (this != &r) {
|
||||
this->Name = r.Name;
|
||||
this->GroupRegex = r.GroupRegex;
|
||||
this->GroupFiles = r.GroupFiles;
|
||||
this->SourceFiles = r.SourceFiles;
|
||||
*(this->Internal) = *(r.Internal);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user