From cbc87f4e67997f9557a06ca218e9dc33239143a3 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Mon, 16 Nov 2020 16:21:33 +0100 Subject: [PATCH] CMeshO const correctness --- src/common/ml_mesh_type.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/ml_mesh_type.h b/src/common/ml_mesh_type.h index 6b139ccaa..6a194b968 100644 --- a/src/common/ml_mesh_type.h +++ b/src/common/ml_mesh_type.h @@ -157,8 +157,8 @@ public : { } - CMeshO(CMeshO& oth) : CMeshO() { - vcg::tri::Append::Mesh(*this, oth); + CMeshO(const CMeshO& oth) : CMeshO() { + vcg::tri::Append::MeshAppendConst(*this, oth); } //TODO need to change this @@ -169,9 +169,9 @@ public : } //TODO should change also this and use the copy&swap idiom - CMeshO& operator=(CMeshO& oth) { + CMeshO& operator=(const CMeshO& oth) { Clear(); - vcg::tri::Append::Mesh(*this, oth); + vcg::tri::Append::MeshCopyConst(*this, oth); return *this; } };