summaryrefslogtreecommitdiffstats
path: root/framework/source/uielement/addonstoolbarwrapper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-02 10:04:55 +0200
committerNoel Grandin <noel@peralex.com>2015-11-02 12:23:16 +0200
commit5797d29e9ead0a3dd181b616dfcc968a9127012d (patch)
treeec8828c4c2e7617f8d8e9334507bab517aed6dc9 /framework/source/uielement/addonstoolbarwrapper.cxx
parentcppcheck: noExplicitConstructor (diff)
downloadcore-5797d29e9ead0a3dd181b616dfcc968a9127012d.tar.gz
core-5797d29e9ead0a3dd181b616dfcc968a9127012d.zip
use uno::Reference::set method instead of assignment
Change-Id: Ic979f8a7734d0ef7a915d47a875cdcd460c0cc58
Diffstat (limited to 'framework/source/uielement/addonstoolbarwrapper.cxx')
-rw-r--r--framework/source/uielement/addonstoolbarwrapper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/uielement/addonstoolbarwrapper.cxx b/framework/source/uielement/addonstoolbarwrapper.cxx
index b2d3e2864b01..793a521b3bd1 100644
--- a/framework/source/uielement/addonstoolbarwrapper.cxx
+++ b/framework/source/uielement/addonstoolbarwrapper.cxx
@@ -116,7 +116,7 @@ void SAL_CALL AddonsToolBarWrapper::initialize( const Sequence< Any >& aArgument
pToolBar = VclPtr<ToolBox>::Create( pWindow, nStyles );
pToolBarManager = new AddonsToolBarManager( m_xContext, xFrame, m_aResourceURL, pToolBar );
- m_xToolBarManager = Reference< XComponent >( static_cast< OWeakObject *>( pToolBarManager ), UNO_QUERY );
+ m_xToolBarManager.set( static_cast< OWeakObject *>( pToolBarManager ), UNO_QUERY );
}
}