diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-12-20 16:36:31 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-05-16 19:24:36 +0100 |
commit | f355f6bc922cc633f20cae49c2560f77fb03c3d2 (patch) | |
tree | f1193fcb5d01f688b930da241b69c6a3060823c1 | |
parent | e910d27a297c9d05945ff160b2aac559f8703df5 (diff) |
Get rid of two pointless #defines
Change-Id: I7479f4f1c440bba1dd9f922c4df32ab877e0a803
Reviewed-on: https://gerrit.libreoffice.org/85619
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit 83fedc02f2d831774c12d60097a99e968b56dc5e)
-rw-r--r-- | svx/source/tbxctrls/tbxcolor.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/svx/source/tbxctrls/tbxcolor.cxx b/svx/source/tbxctrls/tbxcolor.cxx index 5336f070aadf..3a17e38820a4 100644 --- a/svx/source/tbxctrls/tbxcolor.cxx +++ b/svx/source/tbxctrls/tbxcolor.cxx @@ -34,11 +34,8 @@ namespace svx using namespace ::com::sun::star::frame; using namespace ::com::sun::star::beans; - #define TOOLBAR_RESNAME "private:resource/toolbar/" - #define PROPNAME_LAYOUTMANAGER "LayoutManager" - ToolboxAccess::ToolboxAccess( const OUString& rToolboxName ) : - m_sToolboxResName ( TOOLBAR_RESNAME ) + m_sToolboxResName ( "private:resource/toolbar/" ) { m_sToolboxResName += rToolboxName; @@ -50,7 +47,7 @@ namespace svx Reference< XFrame > xFrame = SfxViewFrame::Current()->GetFrame().GetFrameInterface(); Reference< XPropertySet > xFrameProps( xFrame, UNO_QUERY ); if ( xFrameProps.is() ) - xFrameProps->getPropertyValue( PROPNAME_LAYOUTMANAGER ) >>= m_xLayouter; + xFrameProps->getPropertyValue( "LayoutManager" ) >>= m_xLayouter; } catch ( Exception const & ) { |