summaryrefslogtreecommitdiff
path: root/sfx2/inc
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/inc
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/inc')
-rw-r--r--sfx2/inc/sfx2/tbxctrl.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/inc/sfx2/tbxctrl.hxx b/sfx2/inc/sfx2/tbxctrl.hxx
index b0c35990c0e2..f675140c752a 100644
--- a/sfx2/inc/sfx2/tbxctrl.hxx
+++ b/sfx2/inc/sfx2/tbxctrl.hxx
@@ -26,6 +26,7 @@
#include <vcl/menu.hxx>
#include <vcl/fixed.hxx>
#include <vcl/floatwin.hxx>
+#include <comphelper/processfactory.hxx>
#include <sfx2/ctrlitem.hxx>
#include <sfx2/sfxstatuslistener.hxx>
#include <svtools/toolboxcontroller.hxx>
@@ -109,7 +110,6 @@ class SFX2_DLLPUBLIC SfxPopupWindow: public FloatingWindow, public SfxStatusList
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
SfxFrameStatusListener* m_pStatusListener;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > m_xStatusListener;
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceManager;
private:
SfxFrameStatusListener* GetOrCreateStatusListener();
@@ -125,7 +125,7 @@ protected:
sal_uInt16 GetId() const { return m_nId; }
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& GetFrame() const { return m_xFrame; }
- const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& GetServiceManager() const { return m_xServiceManager; }
+ const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > GetServiceManager() const { return ::comphelper::getProcessServiceFactory(); }
void BindListener();
void UnbindListener();