sw/inc/calbck.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4540d0593eea920691849f0b9fc073f6106cefc4
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Sat Nov 27 16:47:16 2021 +0100
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Fri Mar 25 22:41:04 2022 +0100

    Library_msword needs sw::LegacyModifyHint RTTI now in UBSan build
    
    ...since 7d3aadce8d184f72e4785827ad706d27c31a2edb "ofz#41398 drop a para
    scheduled for deletion if something else deletes it", causing e.g.
    CppunitTest_chart2_export to fail with
    
    > [_RUN_____] Chart2ExportTest::testStockChart
    [...]
    > warn:sal.osl:1981149:1981149:sal/osl/unx/module.cxx:155: 
dlopen(/home/sbergman/lo/core/instdir/program/libmswordlo.so, 257): 
/home/sbergman/lo/core/instdir/program/libmswordlo.so: undefined symbol: 
_ZTIN2sw16LegacyModifyHintE
    > warn:sfx.doc:1981149:1981149:sfx2/source/doc/sfxbasemodel.cxx:3147: 
Storing has failed, no error is set!
    > unknown:0:Chart2ExportTest::testStockChart
    >
    > An uncaught exception of type com.sun.star.io.IOException
    > - SfxBaseModel::impl_store 
<file:///home/sbergman/lo/tmp/Chart2ExportTest__testStockChart_4rivgy.tmp> 
failed: 0xc10(Error Area:Io Class:Write Code:16) 
/home/sbergman/lo/core/sfx2/source/doc/sfxbasemodel.cxx:3194 
/home/sbergman/lo/core/sfx2/source/doc/sfxbasemodel.cxx:1775
    
    Change-Id: I47ce1c10b7757b27e4279f35d59e34d5312c8b07
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125945
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index 7f2224671813..7d185d053710 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -69,7 +69,7 @@ namespace sw
     class ClientIteratorBase;
     class ListenerEntry;
     void ClientNotifyAttrChg(SwModify& rModify, const SwAttrSet& aSet, 
SwAttrSet& aOld, SwAttrSet& aNew);
-    struct LegacyModifyHint final: SfxHint
+    struct SAL_DLLPUBLIC_RTTI LegacyModifyHint final: SfxHint
     {
         LegacyModifyHint(const SfxPoolItem* pOld, const SfxPoolItem* pNew) : 
SfxHint(SfxHintId::SwLegacyModify), m_pOld(pOld), m_pNew(pNew) {};
         sal_uInt16 GetWhich() const { return m_pOld ? m_pOld->Which() : m_pNew 
? m_pNew->Which() : 0; };

Reply via email to