From 5095c1909f8809156acea8ccd7fc78efa3c4f356 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Wed, 1 Sep 2010 12:54:01 +0000 Subject: [PATCH] warnings; current mesh id is not unsigned. --- src/common/meshmodel.cpp | 4 ++-- src/common/meshmodel.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/meshmodel.cpp b/src/common/meshmodel.cpp index 6c1a620de..29b20978b 100644 --- a/src/common/meshmodel.cpp +++ b/src/common/meshmodel.cpp @@ -77,7 +77,7 @@ QList MeshDocument::getMeshTags(int meshId) return meshTags; } -void MeshDocument::setCurrentMesh(unsigned int i) +void MeshDocument::setCurrentMesh( int i) { foreach(MeshModel *mmp, meshList) { @@ -93,7 +93,7 @@ void MeshDocument::setCurrentMesh(unsigned int i) } //if i is <0 it means that no currentRaster is set -void MeshDocument::setCurrentRaster(unsigned int i) +void MeshDocument::setCurrentRaster( int i) { if(i<0) { diff --git a/src/common/meshmodel.h b/src/common/meshmodel.h index f764a3d4a..f29af42ff 100644 --- a/src/common/meshmodel.h +++ b/src/common/meshmodel.h @@ -396,10 +396,10 @@ public: MeshModel *getMesh(const char *name); //set the current mesh to be the one at index i of the mesh list - void setCurrentMesh(unsigned int i); + void setCurrentMesh( int i); //set the current raster to be the one at index i of the raster list - void setCurrentRaster(unsigned int i); + void setCurrentRaster( int i); MeshModel *mm() { return currentMesh;