From a5ccdbbc457fb7aadca2d6a046ab891dedca5bb1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 21 Feb 2024 15:44:35 +0200 Subject: UBSan RTTI fixes after I missed a bunch of stuff when testing UBSan with commit 3ba92b5f1eaf7d4447a0943ea260db515ca799dc hide more symbols Change-Id: Id3cb0b70b9fa24c7e3fba7fd565eb658dafa00f8 Change-Id: I369587ed3e14e50ca272037b9d950b62841695d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163703 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/inc/chartlis.hxx | 2 +- sc/inc/clipcontext.hxx | 2 +- sc/inc/compiler.hxx | 2 +- sc/source/ui/inc/csvcontrol.hxx | 2 +- sc/source/ui/inc/csvgrid.hxx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sc') diff --git a/sc/inc/chartlis.hxx b/sc/inc/chartlis.hxx index 5430c3e3c3ba..24368a30d8c0 100644 --- a/sc/inc/chartlis.hxx +++ b/sc/inc/chartlis.hxx @@ -38,7 +38,7 @@ class Timer; class ScDocument; class ScChartUnoData; -class ScChartListener final : public SvtListener +class SAL_DLLPUBLIC_RTTI ScChartListener final : public SvtListener { public: class ExternalRefListener final : public ScExternalRefManager::LinkListener diff --git a/sc/inc/clipcontext.hxx b/sc/inc/clipcontext.hxx index 4efa4fb8382d..a6c989a004f7 100644 --- a/sc/inc/clipcontext.hxx +++ b/sc/inc/clipcontext.hxx @@ -44,7 +44,7 @@ public: ColumnBlockPositionSet* getBlockPositionSet() { return mpSet.get(); } }; -class CopyFromClipContext final : public ClipContextBase +class SAL_DLLPUBLIC_RTTI CopyFromClipContext final : public ClipContextBase { /** Tracks modified formula group spans. */ sc::ColumnSpanSet maListeningFormulaSpans; diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index 3de13eccb665..e31c73ffada9 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -177,7 +177,7 @@ public: formula::FormulaToken* CreateToken(ScSheetLimits& rLimits) const; // create typified token }; -class ScCompiler final : public formula::FormulaCompiler +class SAL_DLLPUBLIC_RTTI ScCompiler final : public formula::FormulaCompiler { public: diff --git a/sc/source/ui/inc/csvcontrol.hxx b/sc/source/ui/inc/csvcontrol.hxx index a764b7178fc9..778f02edc983 100644 --- a/sc/source/ui/inc/csvcontrol.hxx +++ b/sc/source/ui/inc/csvcontrol.hxx @@ -219,7 +219,7 @@ inline void ScCsvCmd::Set( ScCsvCmdType eType, sal_Int32 nParam1, sal_Int32 nPar } /** Base class for the CSV ruler and the data grid control. Implements command handling. */ -class ScCsvControl : public weld::CustomWidgetController +class SAL_DLLPUBLIC_RTTI ScCsvControl : public weld::CustomWidgetController { private: Link maCmdHdl; /// External command handler. diff --git a/sc/source/ui/inc/csvgrid.hxx b/sc/source/ui/inc/csvgrid.hxx index ba0affd10133..c83df6c8b64e 100644 --- a/sc/source/ui/inc/csvgrid.hxx +++ b/sc/source/ui/inc/csvgrid.hxx @@ -54,7 +54,7 @@ typedef ::std::vector< ScCsvColState > ScCsvColStateVec; /** A data grid control for the CSV import dialog. The design of this control simulates a Calc spreadsheet with row and column headers. */ -class ScCsvGrid : public ScCsvControl, public utl::ConfigurationListener +class SAL_DLLPUBLIC_RTTI ScCsvGrid : public ScCsvControl, public utl::ConfigurationListener { private: ScCsvTableBox* mpTableBox; /// Grid Parent -- cgit