from iterator to const_iterator
This commit is contained in:
parent
937a004f80
commit
3d68cc75cf
|
@ -813,7 +813,7 @@ public:
|
||||||
|
|
||||||
template <class ATTR_TYPE>
|
template <class ATTR_TYPE>
|
||||||
static void GetAllPerVertexAttribute(const MeshType & m, std::vector<std::string> &all){
|
static void GetAllPerVertexAttribute(const MeshType & m, std::vector<std::string> &all){
|
||||||
typename std::set<PointerToAttribute > :: iterator i;
|
typename std::set<PointerToAttribute > ::const_iterator i;
|
||||||
for(i = m.vert_attr.begin(); i != m.vert_attr.end(); ++i )
|
for(i = m.vert_attr.begin(); i != m.vert_attr.end(); ++i )
|
||||||
if((*i)._typename == typeid(ATTR_TYPE).name())
|
if((*i)._typename == typeid(ATTR_TYPE).name())
|
||||||
all.push_back((*i)._name);
|
all.push_back((*i)._name);
|
||||||
|
@ -992,7 +992,7 @@ public:
|
||||||
|
|
||||||
template <class ATTR_TYPE>
|
template <class ATTR_TYPE>
|
||||||
static void GetAllPerFaceAttribute(const MeshType & m, std::vector<std::string> &all){
|
static void GetAllPerFaceAttribute(const MeshType & m, std::vector<std::string> &all){
|
||||||
typename std::set<PointerToAttribute > :: iterator i;
|
typename std::set<PointerToAttribute > :: const_iterator i;
|
||||||
for(i = m.face_attr.begin(); i != m.face_attr.end(); ++i )
|
for(i = m.face_attr.begin(); i != m.face_attr.end(); ++i )
|
||||||
if((*i)._typename == typeid(ATTR_TYPE).name())
|
if((*i)._typename == typeid(ATTR_TYPE).name())
|
||||||
all.push_back((*i)._name);
|
all.push_back((*i)._name);
|
||||||
|
|
Loading…
Reference in New Issue