diff --git a/src/libs/3rdparty/cplusplus/Name.h b/src/libs/3rdparty/cplusplus/Name.h index ce6c7b336d2..9f6ae89e30b 100644 --- a/src/libs/3rdparty/cplusplus/Name.h +++ b/src/libs/3rdparty/cplusplus/Name.h @@ -69,7 +69,7 @@ protected: virtual void accept0(NameVisitor *visitor) const = 0; protected: // for Matcher - friend Matcher; + friend class Matcher; virtual bool match0(const Name *otherName, Matcher *matcher) const = 0; }; diff --git a/src/libs/3rdparty/cplusplus/Type.h b/src/libs/3rdparty/cplusplus/Type.h index 77cd20a8c3f..70cfa772357 100644 --- a/src/libs/3rdparty/cplusplus/Type.h +++ b/src/libs/3rdparty/cplusplus/Type.h @@ -106,7 +106,7 @@ protected: virtual void accept0(TypeVisitor *visitor) = 0; protected: // for Matcher - friend Matcher; + friend class Matcher; virtual bool match0(const Type *otherType, Matcher *matcher) const = 0; };