From e68422786ab4dc02f380cbda431bc305e0432809 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Tue, 6 Oct 2026 11:40:43 +0200 Subject: [PATCH] Drop unused ValueSet forward declarations Drop ValueSet forward declarations from headers not actually using the class. Forward-declare the class in cui/source/inc/numpages.hxx which actually uses it, but didn't forward-declare it or include the header yet, but previously got the forward-declaration from an included header. Change-Id: I8876ad47eb362f581aa41ee4a61a85c4093a1dd0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211881 Reviewed-by: Michael Weghorn Tested-by: Jenkins --- chart2/source/controller/dialogs/tp_ChartType.hxx | 2 -- cui/source/inc/numpages.hxx | 1 + include/svtools/ctrlbox.hxx | 2 -- include/svx/sidebar/LineWidthPopup.hxx | 2 -- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/chart2/source/controller/dialogs/tp_ChartType.hxx b/chart2/source/controller/dialogs/tp_ChartType.hxx index 1d90c3a89b18..8a6e95b6b203 100644 --- a/chart2/source/controller/dialogs/tp_ChartType.hxx +++ b/chart2/source/controller/dialogs/tp_ChartType.hxx @@ -35,8 +35,6 @@ class ItemView; class TreeIter; } -class ValueSet; - namespace chart { diff --git a/cui/source/inc/numpages.hxx b/cui/source/inc/numpages.hxx index a2af733f6d23..ee504be855b4 100644 --- a/cui/source/inc/numpages.hxx +++ b/cui/source/inc/numpages.hxx @@ -46,6 +46,7 @@ class ColorListBox; class SvxNumValueSet; class SvxNumRule; class SvxBmpNumValueSet; +class ValueSet; struct ImplSVEvent; struct SvxNumSettings_Impl diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index 651817568b10..a629d79a954d 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -209,8 +209,6 @@ inline Color sameDistColor( Color /*rMain*/, Color rDefault ) return rDefault; } -class ValueSet; - class SVT_DLLPUBLIC SvtLineListBox final : public WeldToolbarPopup { public: diff --git a/include/svx/sidebar/LineWidthPopup.hxx b/include/svx/sidebar/LineWidthPopup.hxx index 524790ed2780..32be0a9be081 100644 --- a/include/svx/sidebar/LineWidthPopup.hxx +++ b/include/svx/sidebar/LineWidthPopup.hxx @@ -26,8 +26,6 @@ #include #include -class ValueSet; - namespace svx::sidebar { class LinePropertyPanelBase;