Fix clang compiler warnings:
+ fix -Winconsistent-missing-override + fix -Wpessimizing-move (Geometry::clone: moving a temporary object prevents copy elision -> remove std::move call here)
This commit is contained in:
@@ -375,7 +375,7 @@ Geometry *Geometry::clone(void) const
|
||||
cpy->tag = this->tag;
|
||||
|
||||
for(auto & ext: extensions)
|
||||
cpy->extensions.push_back(std::move(ext->copy()));
|
||||
cpy->extensions.push_back(ext->copy());
|
||||
|
||||
return cpy;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user