gcc fixes.

This commit is contained in:
Leonardo Zide 2021-01-05 15:19:53 -08:00
parent 8d05f5eb4c
commit 52ab6c4f59

View file

@ -67,7 +67,7 @@ const T& lcObjectKeyArray<T>::CalculateKey(lcStep Step) const
template<typename T> template<typename T>
void lcObjectKeyArray<T>::ChangeKey(const T& Value, lcStep Step, bool AddKey) void lcObjectKeyArray<T>::ChangeKey(const T& Value, lcStep Step, bool AddKey)
{ {
for (std::vector<lcObjectKey<T>>::iterator KeyIt = mKeys.begin(); KeyIt != mKeys.end(); KeyIt++) for (typename std::vector<lcObjectKey<T>>::iterator KeyIt = mKeys.begin(); KeyIt != mKeys.end(); KeyIt++)
{ {
if (KeyIt->Step < Step) if (KeyIt->Step < Step)
continue; continue;
@ -98,7 +98,7 @@ void lcObjectKeyArray<T>::InsertTime(lcStep Start, lcStep Time)
{ {
bool EndKey = false; bool EndKey = false;
for (std::vector<lcObjectKey<T>>::iterator KeyIt = mKeys.begin(); KeyIt != mKeys.end();) for (typename std::vector<lcObjectKey<T>>::iterator KeyIt = mKeys.begin(); KeyIt != mKeys.end();)
{ {
if ((KeyIt->Step < Start) || (KeyIt->Step == 1)) if ((KeyIt->Step < Start) || (KeyIt->Step == 1))
{ {
@ -127,7 +127,7 @@ void lcObjectKeyArray<T>::InsertTime(lcStep Start, lcStep Time)
template<typename T> template<typename T>
void lcObjectKeyArray<T>::RemoveTime(lcStep Start, lcStep Time) void lcObjectKeyArray<T>::RemoveTime(lcStep Start, lcStep Time)
{ {
for (std::vector<lcObjectKey<T>>::iterator KeyIt = mKeys.begin(); KeyIt != mKeys.end();) for (typename std::vector<lcObjectKey<T>>::iterator KeyIt = mKeys.begin(); KeyIt != mKeys.end();)
{ {
if ((KeyIt->Step < Start) || (KeyIt->Step == 1)) if ((KeyIt->Step < Start) || (KeyIt->Step == 1))
{ {