CPlusPlus: Fix build with clang-cl

llvm-link is picky regarding missing dllimport symbols.

Change-Id: I189ddaa0962ded9ebe16d60bae568979a35403a3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Cristian Adam
2021-06-03 10:40:05 +02:00
parent c1c638658e
commit c956d02200

View File

@@ -76,7 +76,7 @@ public:
Tptr value;
List *next;
class ListIterator
class CPLUSPLUS_EXPORT ListIterator
{
List<Tptr> *iter;
@@ -91,8 +91,8 @@ public:
iter = iter->next;
return *this;
}
bool operator==(ListIterator other) { return iter == other.iter; }
bool operator!=(ListIterator other) { return iter != other.iter; }
bool operator==(const ListIterator &other) { return iter == other.iter; }
bool operator!=(const ListIterator &other) { return iter != other.iter; }
};
ListIterator begin() { return {this}; }
ListIterator end() { return {nullptr}; }