From 26541cfeae1bdb48e867bdcdf0a5f306258e06e8 Mon Sep 17 00:00:00 2001 From: granzuglia Date: Sat, 9 Aug 2014 10:08:15 +0000 Subject: [PATCH] simplex/vertex/component_ocf.h: - removed Visual Studio warnings --- vcg/simplex/vertex/component_ocf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcg/simplex/vertex/component_ocf.h b/vcg/simplex/vertex/component_ocf.h index 00c53d62..e245c38e 100644 --- a/vcg/simplex/vertex/component_ocf.h +++ b/vcg/simplex/vertex/component_ocf.h @@ -79,9 +79,9 @@ public: void pop_back(); - void resize(const unsigned int & _size) + void resize(size_t _size) { - const unsigned int oldsize = BaseType::size(); + const size_t oldsize = BaseType::size(); BaseType::resize(_size); if(oldsize<_size){ ThisTypeIterator firstnew = BaseType::begin(); @@ -99,7 +99,7 @@ public: if (RadiusEnabled) RadiusV.resize(_size); } - void reserve(const unsigned int & _size) + void reserve(size_t _size) { BaseType::reserve(_size); if (ColorEnabled) CV.reserve(_size);