From 44f5f373d7aecdd53311ee5fe8713b0608f178a9 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Thu, 20 Oct 2022 12:04:31 +0800 Subject: [PATCH] headers: Drop LIBXMLPP_API from 'friend' members They aren't really necessary and can raise warnings on Windows MinGW builds unless their locations were exchanged with 'class' or 'struct', but doing so is not liked by Visual Studio. --- libxml++/document.h | 2 +- libxml++/parsers/saxparser.h | 2 +- libxml++/parsers/textreader.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libxml++/document.h b/libxml++/document.h index 648b9121..bf204a5b 100644 --- a/libxml++/document.h +++ b/libxml++/document.h @@ -72,7 +72,7 @@ class Document : public NonCopyable ~Init() noexcept; }; - friend LIBXMLPP_API class SaxParser; + friend class SaxParser; public: /** Create a new document. diff --git a/libxml++/parsers/saxparser.h b/libxml++/parsers/saxparser.h index 13640516..affacbf2 100644 --- a/libxml++/parsers/saxparser.h +++ b/libxml++/parsers/saxparser.h @@ -250,7 +250,7 @@ class SaxParser : public Parser // and never seen in the API: std::unique_ptr entity_resolver_doc_; - friend LIBXMLPP_API struct SaxParserCallback; + friend struct SaxParserCallback; }; } // namespace xmlpp diff --git a/libxml++/parsers/textreader.h b/libxml++/parsers/textreader.h index 807f3456..dbc22ed8 100644 --- a/libxml++/parsers/textreader.h +++ b/libxml++/parsers/textreader.h @@ -292,7 +292,7 @@ class TextReader: public NonCopyable private: class PropertyReader; - friend LIBXMLPP_API class PropertyReader; + friend class PropertyReader; LIBXMLPP_API void setup_exceptions();