simplex/face/component_ocf.h:

- removed Visual Studio warnings
This commit is contained in:
granzuglia 2014-08-09 10:07:30 +00:00
parent cb015f4a5c
commit 654a41aaf8
1 changed files with 5 additions and 5 deletions

View File

@ -134,9 +134,9 @@ public:
if (WedgeNormalEnabled) WNV.push_back(WedgeNormalTypePack()); if (WedgeNormalEnabled) WNV.push_back(WedgeNormalTypePack());
} }
void pop_back(); 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); BaseType::resize(_size);
if(oldsize<_size){ if(oldsize<_size){
ThisTypeIterator firstnew = BaseType::begin(); ThisTypeIterator firstnew = BaseType::begin();
@ -154,7 +154,7 @@ public:
if (WedgeColorEnabled) WCV.resize(_size); if (WedgeColorEnabled) WCV.resize(_size);
if (WedgeNormalEnabled) WNV.resize(_size); if (WedgeNormalEnabled) WNV.resize(_size);
} }
void reserve(const unsigned int & _size) void reserve(size_t _size)
{ {
BaseType::reserve(_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<typename T::FaceType const *>(this); typename T::FaceType const *tp=static_cast<typename T::FaceType const *>(this);
int tt2=tp- &*(_ovp->begin()); size_t tt2=tp- &*(_ovp->begin());
return tt2; return tt2;
} }
public: public: