diff --git a/src/orderedmap.h b/src/orderedmap.h index 348cd6b..a17987c 100644 --- a/src/orderedmap.h +++ b/src/orderedmap.h @@ -38,9 +38,6 @@ class OrderedMap typedef typename QLinkedList::const_iterator QllConstIterator; typedef QPair OMHashValue; - typedef typename OMHash::iterator OMHashIterator; - typedef typename OMHash::const_iterator OMHashConstIterator; - public: class iterator; @@ -57,7 +54,7 @@ class OrderedMap OrderedMap(const OrderedMap& other); -#if (QT_VERSION >= 0x050200) +#ifdef Q_COMPILER_RVALUE_REFS OrderedMap(OrderedMap&& other); #endif @@ -89,7 +86,7 @@ class OrderedMap OrderedMap & operator=(const OrderedMap& other); -#if (QT_VERSION >= 0x050200) +#ifdef Q_COMPILER_RVALUE_REFS OrderedMap & operator=(OrderedMap&& other); #endif @@ -335,6 +332,9 @@ class OrderedMap } }; + typedef typename OMHash::iterator OMHashIterator; + typedef typename OMHash::const_iterator OMHashConstIterator; + private: void copy(const OrderedMap &other); @@ -362,7 +362,7 @@ OrderedMap::OrderedMap(const OrderedMap& other) copy(other); } -#if (QT_VERSION >= 0x050200) +#ifdef Q_COMPILER_RVALUE_REFS template OrderedMap::OrderedMap(OrderedMap&& other) { @@ -525,7 +525,7 @@ OrderedMap & OrderedMap::operator=(const OrderedMap= 0x050200) +#ifdef Q_COMPILER_RVALUE_REFS template OrderedMap & OrderedMap::operator=(OrderedMap&& other) {