From c956d02200e89934c67eeab54967c11840715126 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Thu, 3 Jun 2021 10:40:05 +0200 Subject: [PATCH] CPlusPlus: Fix build with clang-cl llvm-link is picky regarding missing dllimport symbols. Change-Id: I189ddaa0962ded9ebe16d60bae568979a35403a3 Reviewed-by: Alessandro Portale Reviewed-by: Christian Kandeler --- src/libs/3rdparty/cplusplus/AST.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/3rdparty/cplusplus/AST.h b/src/libs/3rdparty/cplusplus/AST.h index 4fd31f391c7..60374d2e0f4 100644 --- a/src/libs/3rdparty/cplusplus/AST.h +++ b/src/libs/3rdparty/cplusplus/AST.h @@ -76,7 +76,7 @@ public: Tptr value; List *next; - class ListIterator + class CPLUSPLUS_EXPORT ListIterator { List *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}; }