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>
This commit is contained in:
@@ -44,8 +44,6 @@ class ListBox;
|
|||||||
class ToolBox;
|
class ToolBox;
|
||||||
class FloatingWindow;
|
class FloatingWindow;
|
||||||
|
|
||||||
#define SIDEBAR_LINE_WIDTH_GLOBAL_VALUE "PopupPanel_LineWidth"
|
|
||||||
|
|
||||||
namespace sfx2 { namespace sidebar {
|
namespace sfx2 { namespace sidebar {
|
||||||
|
|
||||||
class SidebarToolBox;
|
class SidebarToolBox;
|
||||||
|
@@ -43,8 +43,6 @@ class ListBox;
|
|||||||
class ToolBox;
|
class ToolBox;
|
||||||
class FloatingWindow;
|
class FloatingWindow;
|
||||||
|
|
||||||
#define SIDEBAR_LINE_WIDTH_GLOBAL_VALUE "PopupPanel_LineWidth"
|
|
||||||
|
|
||||||
namespace svx
|
namespace svx
|
||||||
{
|
{
|
||||||
namespace sidebar
|
namespace sidebar
|
||||||
|
@@ -174,7 +174,7 @@ void LineWidthPopup::SetWidthSelect(long lValue, bool bValuable, MapUnit eMapUni
|
|||||||
m_bVSFocus = true;
|
m_bVSFocus = true;
|
||||||
m_xVSWidth->SetSelItem(0);
|
m_xVSWidth->SetSelItem(0);
|
||||||
m_eMapUnit = eMapUnit;
|
m_eMapUnit = eMapUnit;
|
||||||
SvtViewOptions aWinOpt( EViewType::Window, SIDEBAR_LINE_WIDTH_GLOBAL_VALUE );
|
SvtViewOptions aWinOpt( EViewType::Window, "PopupPanel_LineWidth" );
|
||||||
if (aWinOpt.Exists())
|
if (aWinOpt.Exists())
|
||||||
{
|
{
|
||||||
css::uno::Sequence <css::beans::NamedValue> aSeq = aWinOpt.GetUserData();
|
css::uno::Sequence <css::beans::NamedValue> aSeq = aWinOpt.GetUserData();
|
||||||
|
Reference in New Issue
Block a user