summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-12-18 09:21:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-20 12:27:11 +0100
commit337665f7e45258fac57ab034f500672eb5aaec2f (patch)
tree466e3d097aa59fd05ee0ba78fec03ff7a5fc8c65 /svx
parent75a665874afa5b12a0e3e84d61baf286786578f1 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/line/LinePropertyPanel.hxx2
-rw-r--r--svx/source/sidebar/line/LineWidthPopup.cxx2
2 files changed, 1 insertions, 3 deletions
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 <css::beans::NamedValue> aSeq = aWinOpt.GetUserData();