From 654a41aaf8d159520bdd59e23f339329112c54a9 Mon Sep 17 00:00:00 2001 From: granzuglia Date: Sat, 9 Aug 2014 10:07:30 +0000 Subject: [PATCH] simplex/face/component_ocf.h: - removed Visual Studio warnings --- vcg/simplex/face/component_ocf.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vcg/simplex/face/component_ocf.h b/vcg/simplex/face/component_ocf.h index 58b8b92a..b43b148f 100644 --- a/vcg/simplex/face/component_ocf.h +++ b/vcg/simplex/face/component_ocf.h @@ -134,9 +134,9 @@ public: if (WedgeNormalEnabled) WNV.push_back(WedgeNormalTypePack()); } void pop_back(); - void resize(const unsigned int & _size) + void resize(size_t _size) { - unsigned int oldsize = BaseType::size(); + size_t oldsize = BaseType::size(); BaseType::resize(_size); if(oldsize<_size){ ThisTypeIterator firstnew = BaseType::begin(); @@ -154,7 +154,7 @@ public: if (WedgeColorEnabled) WCV.resize(_size); if (WedgeNormalEnabled) WNV.resize(_size); } - void reserve(const unsigned int & _size) + void reserve(size_t _size) { BaseType::reserve(_size); @@ -711,9 +711,9 @@ public: - inline int Index() const { + inline size_t Index() const { typename T::FaceType const *tp=static_cast(this); - int tt2=tp- &*(_ovp->begin()); + size_t tt2=tp- &*(_ovp->begin()); return tt2; } public: