mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
idList iterator fix
parser cleanup fix
This commit is contained in:
parent
55b9937380
commit
4401deac27
2 changed files with 8 additions and 8 deletions
|
@ -203,11 +203,11 @@ public:
|
|||
memTag = ( byte )tag_;
|
||||
};
|
||||
|
||||
/*
|
||||
template<typename T>
|
||||
struct Iterator
|
||||
{
|
||||
_type_* p;
|
||||
_type_& operator*()
|
||||
T* p;
|
||||
T& operator*()
|
||||
{
|
||||
return *p;
|
||||
}
|
||||
|
@ -223,14 +223,15 @@ public:
|
|||
|
||||
auto begin() const // const version
|
||||
{
|
||||
return Iterator{list};
|
||||
return Iterator<_type_>{list};
|
||||
};
|
||||
auto end() const // const version
|
||||
{
|
||||
return Iterator{list + Num()};
|
||||
return Iterator<_type_>{list + Num( )};
|
||||
};
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
// Begin/End methods for range-based for loops.
|
||||
_type_* begin()
|
||||
{
|
||||
|
@ -277,7 +278,7 @@ public:
|
|||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
private:
|
||||
int num;
|
||||
int size;
|
||||
|
|
|
@ -54,7 +54,6 @@ public:
|
|||
}
|
||||
virtual ~parseType()
|
||||
{
|
||||
delete item;
|
||||
}
|
||||
T* item;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue