Skip to content

Commit b8d403f

Browse files
authored
headers: Drop LIBXMLPP_API from 'friend' members (#47)
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.
1 parent 7fac1fd commit b8d403f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libxml++/document.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Document : public NonCopyable
7272
~Init() noexcept;
7373
};
7474

75-
friend LIBXMLPP_API class SaxParser;
75+
friend class SaxParser;
7676

7777
public:
7878
/** Create a new document.

libxml++/parsers/saxparser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class SaxParser : public Parser
250250
// and never seen in the API:
251251
std::unique_ptr<Document> entity_resolver_doc_;
252252

253-
friend LIBXMLPP_API struct SaxParserCallback;
253+
friend struct SaxParserCallback;
254254
};
255255

256256
} // namespace xmlpp

libxml++/parsers/textreader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class TextReader: public NonCopyable
292292

293293
private:
294294
class PropertyReader;
295-
friend LIBXMLPP_API class PropertyReader;
295+
friend class PropertyReader;
296296

297297
LIBXMLPP_API
298298
void setup_exceptions();

0 commit comments

Comments
 (0)