From ff5425d84fdbdcc730e75da59eaa96e4742cc706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Mon, 22 Jul 2013 15:06:21 +0000 Subject: [PATCH] reserve and resize of the property vectors now take size_t git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@840 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Core/Mesh/BaseKernel.hh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/OpenMesh/Core/Mesh/BaseKernel.hh b/src/OpenMesh/Core/Mesh/BaseKernel.hh index 790a1ba8..1332fb4f 100644 --- a/src/OpenMesh/Core/Mesh/BaseKernel.hh +++ b/src/OpenMesh/Core/Mesh/BaseKernel.hh @@ -638,8 +638,8 @@ public: //----------------------------------------------------- element numbers protected: //------------------------------------------- synchronize properties - void vprops_reserve(unsigned int _n) const { vprops_.reserve(_n); } - void vprops_resize(unsigned int _n) const { vprops_.resize(_n); } + void vprops_reserve(size_t _n) const { vprops_.reserve(_n); } + void vprops_resize(size_t _n) const { vprops_.resize(_n); } void vprops_clear() { vprops_.clear(); } @@ -647,8 +647,8 @@ protected: //------------------------------------------- synchronize properties vprops_.swap(_i0, _i1); } - void hprops_reserve(unsigned int _n) const { hprops_.reserve(_n); } - void hprops_resize(unsigned int _n) const { hprops_.resize(_n); } + void hprops_reserve(size_t _n) const { hprops_.reserve(_n); } + void hprops_resize(size_t _n) const { hprops_.resize(_n); } void hprops_clear() { hprops_.clear(); } @@ -656,8 +656,8 @@ protected: //------------------------------------------- synchronize properties hprops_.swap(_i0, _i1); } - void eprops_reserve(unsigned int _n) const { eprops_.reserve(_n); } - void eprops_resize(unsigned int _n) const { eprops_.resize(_n); } + void eprops_reserve(size_t _n) const { eprops_.reserve(_n); } + void eprops_resize(size_t _n) const { eprops_.resize(_n); } void eprops_clear() { eprops_.clear(); } @@ -665,8 +665,8 @@ protected: //------------------------------------------- synchronize properties eprops_.swap(_i0, _i1); } - void fprops_reserve(unsigned int _n) const { fprops_.reserve(_n); } - void fprops_resize(unsigned int _n) const { fprops_.resize(_n); } + void fprops_reserve(size_t _n) const { fprops_.reserve(_n); } + void fprops_resize(size_t _n) const { fprops_.resize(_n); } void fprops_clear() { fprops_.clear(); } @@ -674,7 +674,7 @@ protected: //------------------------------------------- synchronize properties fprops_.swap(_i0, _i1); } - void mprops_resize(unsigned int _n) const { mprops_.resize(_n); } + void mprops_resize(size_t _n) const { mprops_.resize(_n); } void mprops_clear() { mprops_.clear(); }