Skip to content
Snippets Groups Projects
Commit c049195b authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Corr copy assigment operator, as suggested by clang-tidy cert-oop54-cpp

parent f6dfb628
No related branches found
No related tags found
1 merge request!451various little improvements as suggested by clang-tidy
......@@ -31,6 +31,8 @@ Material::Material(const Material& material)
Material& Material::operator=(const Material& other)
{
if(this == &other)
return *this;
ASSERT(!other.isEmpty());
m_material_impl.reset(other.m_material_impl->clone());
return *this;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment