Commit 51fc72a6 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed cppcheck warnings

parent e194db48
......@@ -113,15 +113,15 @@ bool getMesh( int _identifier , PolyMesh*& _mesh ) {
if ( object == 0)
return false;
PolyMeshObject* polyMeshObject = dynamic_cast< PolyMeshObject* > (object);
PolyMeshObject* polyMeshObjectPointer = dynamic_cast< PolyMeshObject* > (object);
// Object is not a triangle mesh
if ( polyMeshObject == 0) {
if ( polyMeshObjectPointer == 0) {
_mesh = 0;
return false;
}
_mesh = polyMeshObject->mesh();
_mesh = polyMeshObjectPointer->mesh();
return true;
}
......
......@@ -91,7 +91,7 @@ ACG::Vec3d TriMeshObject::refinePick(ACG::SceneGraph::PickTarget _pickTarget, co
++fv_it;
ACG::Vec3d p3 = mesh()->point(*fv_it);
++fv_it;
//++fv_it;
ACG::Vec3d hitpointNew = _hitPoint;
......
......@@ -45,7 +45,7 @@
//-----------------------------------------------------------------------------
PolyMeshBackup::PolyMeshBackup(PolyMeshObject* _meshObj, QString _name, UpdateType _type)
PolyMeshBackup::PolyMeshBackup(PolyMeshObject* _meshObj, const QString& _name, UpdateType _type)
: BaseBackup( _meshObj, _name, _type ),
meshObj_(_meshObj)
{
......
......@@ -53,7 +53,7 @@ class PolyMeshBackup : public BaseBackup
{
public:
PolyMeshBackup(PolyMeshObject* _meshObj, QString _name, UpdateType _type);
PolyMeshBackup(PolyMeshObject* _meshObj, const QString& _name, UpdateType _type);
~PolyMeshBackup();
public:
......
......@@ -44,7 +44,7 @@
//-----------------------------------------------------------------------------
TriMeshBackup::TriMeshBackup(TriMeshObject* _meshObj, QString _name, UpdateType _type)
TriMeshBackup::TriMeshBackup(TriMeshObject* _meshObj, const QString& _name, UpdateType _type)
: BaseBackup( _meshObj, _name, _type ),
meshObj_(_meshObj)
{
......
......@@ -53,7 +53,7 @@ class TriMeshBackup : public BaseBackup
{
public:
TriMeshBackup(TriMeshObject* _meshObj, QString _name, UpdateType _type);
TriMeshBackup(TriMeshObject* _meshObj, const QString& _name, UpdateType _type);
~TriMeshBackup();
public:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment