summaryrefslogtreecommitdiff
path: root/sfx2/source/toolbox
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-12-11 11:45:28 +0200
committerNoel Grandin <noel@peralex.com>2012-12-13 05:20:59 +0200
commit37b6871fa1fb12c4b2b45db5f3e6ac583577f538 (patch)
tree82fbd5378c21cdbc5fa0b2de16706812d515b2b9 /sfx2/source/toolbox
parentb552f521f6bbf917ae41ccfcddeb498c75c824e3 (diff)
Remove unnecessary member field
If SfxPopup is always going to use comphelper::getProcessServiceFactory, it doesn't need to store it in a member field. Change-Id: Id8806bcc4cc92e66e94d4a5c54c3413570963335
Diffstat (limited to 'sfx2/source/toolbox')
-rw-r--r--sfx2/source/toolbox/tbxitem.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx
index 340924714d38..64e8901ed514 100644
--- a/sfx2/source/toolbox/tbxitem.cxx
+++ b/sfx2/source/toolbox/tbxitem.cxx
@@ -1159,8 +1159,6 @@ SfxPopupWindow::SfxPopupWindow(
, m_xFrame( rFrame )
, m_pStatusListener( 0 )
{
- m_xServiceManager = ::comphelper::getProcessServiceFactory();
-
Window* pWindow = GetTopMostParentSystemWindow( this );
if ( pWindow )
((SystemWindow *)pWindow)->GetTaskPaneList()->AddWindow( this );
@@ -1179,8 +1177,6 @@ SfxPopupWindow::SfxPopupWindow(
, m_xFrame( rFrame )
, m_pStatusListener( 0 )
{
- m_xServiceManager = ::comphelper::getProcessServiceFactory();
-
Window* pWindow = GetTopMostParentSystemWindow( this );
if ( pWindow )
((SystemWindow *)pWindow)->GetTaskPaneList()->AddWindow( this );
@@ -1200,8 +1196,6 @@ SfxPopupWindow::SfxPopupWindow(
, m_xFrame( rFrame )
, m_pStatusListener( 0 )
{
- m_xServiceManager = ::comphelper::getProcessServiceFactory();
-
Window* pWindow = GetTopMostParentSystemWindow( this );
if ( pWindow )
((SystemWindow *)pWindow)->GetTaskPaneList()->AddWindow( this );
@@ -1229,7 +1223,7 @@ SfxFrameStatusListener* SfxPopupWindow::GetOrCreateStatusListener()
if ( !m_xStatusListener.is() )
{
m_pStatusListener = new SfxFrameStatusListener(
- m_xServiceManager,
+ ::comphelper::getProcessServiceFactory(),
m_xFrame,
this );
m_xStatusListener = Reference< XComponent >( static_cast< cppu::OWeakObject* >(