sw/inc/formatcontentcontrol.hxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 5cb3a31ff0fb17ee75c4a8ce6c79ae6c39d0954f
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Fri Apr 1 21:21:05 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Fri Apr 1 22:44:31 2022 +0200

    UBSan needs some more RTTI during CppunitTest_sw_core_unocore now
    
    > DynamicLibraryManagerException: "Failed to load dynamic library: 
workdir/LinkTarget/CppunitTest/libtest_sw_core_unocore.so
    > LinkTarget/CppunitTest/libtest_sw_core_unocore.so: undefined symbol: 
_ZTI22SwFormatContentControl"
    
    and
    
    > DynamicLibraryManagerException: "Failed to load dynamic library: 
workdir/LinkTarget/CppunitTest/libtest_sw_core_unocore.so
    > workdir/LinkTarget/CppunitTest/libtest_sw_core_unocore.so: undefined 
symbol: _ZTI16SwContentControl"
    
    presumably since 5da08b21cd23f2e70f5003733b03a7aee7915225 "sw content 
controls:
    add UNO API to insert this with custom props"
    
    Change-Id: I77370f11766456081827257d688490ff6e138cce
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132447
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sw/inc/formatcontentcontrol.hxx b/sw/inc/formatcontentcontrol.hxx
index c1ac07279efe..097f4ae7c179 100644
--- a/sw/inc/formatcontentcontrol.hxx
+++ b/sw/inc/formatcontentcontrol.hxx
@@ -22,6 +22,7 @@
 #include <com/sun/star/text/XTextContent.hpp>
 
 #include <cppuhelper/weakref.hxx>
+#include <sal/types.h>
 #include <svl/poolitem.hxx>
 
 #include "calbck.hxx"
@@ -32,7 +33,7 @@ class SwTextNode;
 class SwXContentControl;
 
 /// SfxPoolItem subclass that wraps an SwContentControl.
-class SwFormatContentControl final : public SfxPoolItem
+class SAL_DLLPUBLIC_RTTI SwFormatContentControl final : public SfxPoolItem
 {
     std::shared_ptr<SwContentControl> m_pContentControl;
     SwTextContentControl* m_pTextAttr;
@@ -66,7 +67,7 @@ public:
 };
 
 /// Stores the properties of a content control.
-class SwContentControl : public sw::BroadcastingModify
+class SAL_DLLPUBLIC_RTTI SwContentControl : public sw::BroadcastingModify
 {
     css::uno::WeakReference<css::text::XTextContent> m_wXContentControl;
 

Reply via email to