From d55cf1fc1f37df84924a9b00e3b7d50bace0a847 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sat, 29 Jun 2019 10:19:03 +0200 Subject: [PATCH] Fix marking wxPGIterator template class with dllexport/import attributes It's not allowed to mark the class template. Only explicit instantiation can be marked with dllexport/import attributes. --- include/wx/propgrid/propgridpagestate.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/propgrid/propgridpagestate.h b/include/wx/propgrid/propgridpagestate.h index ce72e8ec5c..a30a7afe1a 100644 --- a/include/wx/propgrid/propgridpagestate.h +++ b/include/wx/propgrid/propgridpagestate.h @@ -210,7 +210,7 @@ private: }; template -class WXDLLIMPEXP_PROPGRID wxPGIterator : public wxPropertyGridIteratorBase +class wxPGIterator : public wxPropertyGridIteratorBase { public: wxPGIterator(STATE* state, int flags = wxPG_ITERATE_DEFAULT, @@ -267,8 +267,8 @@ public: // Preferable way to iterate through contents of wxPropertyGrid, // wxPropertyGridManager, and wxPropertyGridPage. // See wxPropertyGridInterface::GetIterator() for more information about usage. -typedef wxPGIterator wxPropertyGridIterator; -typedef wxPGIterator wxPropertyGridConstIterator; +typedef WXDLLIMPEXP_PROPGRID wxPGIterator wxPropertyGridIterator; +typedef WXDLLIMPEXP_PROPGRID wxPGIterator wxPropertyGridConstIterator; // -----------------------------------------------------------------------