include/svl/stylesheetuser.hxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 2e63d4554069b33654729a9247c0b32950803163
Author: Stephan Bergmann <>
Date:   Fri Feb 23 14:21:45 2018 +0100

    StyleSheetUser use in dynamic_cast should better be SAL_DLLPUBLIC_RTTI that the dynamic_cast is guaranteed to work on macOS (where RTTI
    equivalence is determined by address, not by strcmp).  The relevant 
    is in SdStyleSheet::IsUsed in sd/source/core/stlsheet.cxx, and at least 
during a
    `make check` it appears to only be fed SdStyleSheet instances derived from
    StyleSheetUser (and SdStyleSheet is also defiined in Library_sd, so the
    dynamic_cast happens to work fine also on macOS in that case).  But better 
    conservative and mark StyleSheetUser as SAL_DLLPUBLIC_RTTI after all.
    Change-Id: I760f58357b7fe3b4826ea496934e03da3499419e
    Reviewed-by: Stephan Bergmann <>
    Tested-by: Stephan Bergmann <>

diff --git a/include/svl/stylesheetuser.hxx b/include/svl/stylesheetuser.hxx
index 0f0be440b93e..86975f6b25f6 100644
--- a/include/svl/stylesheetuser.hxx
+++ b/include/svl/stylesheetuser.hxx
@@ -10,6 +10,10 @@
+#include <sal/config.h>
+#include <sal/types.h>
 namespace svl
@@ -19,7 +23,7 @@ namespace svl
   a SfxStyleSheet (and listen on it). It can be queried by the stylesheet
   to determine if it is really used.
-class StyleSheetUser
+class SAL_DLLPUBLIC_RTTI StyleSheetUser
     /** Test whether this object is used.
Libreoffice-commits mailing list

Reply via email to