From 337665f7e45258fac57ab034f500672eb5aaec2f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 18 Dec 2019 09:21:41 +0200 Subject: loplugin:duplicate-defines only used in one place, so just inline it Change-Id: I198dd22888beab4c7b72e053943d337c9123a03a Reviewed-on: https://gerrit.libreoffice.org/85554 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/sidebar/line/LinePropertyPanel.hxx | 2 -- svx/source/sidebar/line/LineWidthPopup.cxx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'svx') diff --git a/svx/source/sidebar/line/LinePropertyPanel.hxx b/svx/source/sidebar/line/LinePropertyPanel.hxx index be8406a3c8c9..5ad1c850cd26 100644 --- a/svx/source/sidebar/line/LinePropertyPanel.hxx +++ b/svx/source/sidebar/line/LinePropertyPanel.hxx @@ -43,8 +43,6 @@ class ListBox; class ToolBox; class FloatingWindow; -#define SIDEBAR_LINE_WIDTH_GLOBAL_VALUE "PopupPanel_LineWidth" - namespace svx { namespace sidebar diff --git a/svx/source/sidebar/line/LineWidthPopup.cxx b/svx/source/sidebar/line/LineWidthPopup.cxx index 8df03806ad1e..d4964d3642e6 100644 --- a/svx/source/sidebar/line/LineWidthPopup.cxx +++ b/svx/source/sidebar/line/LineWidthPopup.cxx @@ -174,7 +174,7 @@ void LineWidthPopup::SetWidthSelect(long lValue, bool bValuable, MapUnit eMapUni m_bVSFocus = true; m_xVSWidth->SetSelItem(0); m_eMapUnit = eMapUnit; - SvtViewOptions aWinOpt( EViewType::Window, SIDEBAR_LINE_WIDTH_GLOBAL_VALUE ); + SvtViewOptions aWinOpt( EViewType::Window, "PopupPanel_LineWidth" ); if (aWinOpt.Exists()) { css::uno::Sequence aSeq = aWinOpt.GetUserData(); -- cgit