diff --git a/modules/gmt/modgmt_func.h b/modules/gmt/modgmt_func.h index 11923b7..8743c3d 100644 --- a/modules/gmt/modgmt_func.h +++ b/modules/gmt/modgmt_func.h @@ -22,7 +22,7 @@ class Base2Something: public OBTypeM public: Base2Something(const ObjectBase* arg):OBTypeM(arg) {}; Base2Something(const ObjectList* input, const std::string& name):OBTypeM(input->Find(name)){}; - Base2Something(const ObjectList* input, const ObjectList::ListValues::size_type i):OBTypeM((iSize())?input->At(i):0){}; // Check index, because At is not safe + Base2Something(const ObjectList* input, const ObjectList::IndexType i):OBTypeM((iSize())?input->At(i):0){}; // Check index, because At is not safe template auto operator ()(bool* b, Args... args) const -> decltype(this->OBTypeM::template operator()(b, args...)) { @@ -149,7 +149,7 @@ struct SearchHelper { void operator()(const ObjectList* input, Struct* s, bool* exist, bool* ok) const { - for(ObjectList::ListValues::size_type i=0;iSize();i++) + for(ObjectList::IndexType i=0;iSize();i++) { OBType > obj(input->At(i)); if(obj) @@ -194,7 +194,7 @@ class SearchParameter // Bottom of recursion SearchParameter(const ObjectList* input):exist(false),ok(true) {SearchHelper()(input,&val,&exist,&ok);} // Search by index - SearchParameter(const ObjectList* input, const ObjectList::ListValues::size_type i):exist(false),ok(true) + SearchParameter(const ObjectList* input, const ObjectList::IndexType i):exist(false),ok(true) { Base2Struct a(input,i); if(a.Exist()) diff --git a/modules/gmt/modgmt_map.cpp b/modules/gmt/modgmt_map.cpp index 133027e..c0f71c4 100644 --- a/modules/gmt/modgmt_map.cpp +++ b/modules/gmt/modgmt_map.cpp @@ -247,7 +247,7 @@ const ObjectBase* GMT_Convert2PDF(const ObjectList* input) } { - for(ObjectList::ListValues::size_type i=0;iSize();i++) + for(ObjectList::IndexType i=0;iSize();i++) { OBType m(input->At(i)); if(m) @@ -298,7 +298,7 @@ const ObjectBase* GMT_Convert2PNG(const ObjectList* input) // Map to convert { - for(ObjectList::ListValues::size_type i=0;iSize();i++) + for(ObjectList::IndexType i=0;iSize();i++) { OBType m(input->At(i)); OBType p(input->At(i)); @@ -422,7 +422,7 @@ const ObjectBase* GMT_Convert2JPG(const ObjectList* input) // Map to convert { - for(ObjectList::ListValues::size_type i=0;iSize();i++) + for(ObjectList::IndexType i=0;iSize();i++) { OBType m(input->At(i)); OBType p(input->At(i));