From e25669fcedcb7231254d3ba0e0224b2e3eb901d8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 27 Oct 2015 12:52:16 +0200 Subject: don't allocate uno::Reference on the heap There is no point, since it's the size of a pointer anyway (found by temporarily making the new operator in uno::Reference deleted). Change-Id: I62a8b957fef9184f65d705600acfdab4116dcb34 Reviewed-on: https://gerrit.libreoffice.org/19603 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/inc/uivwimp.hxx | 2 +- sw/source/uibase/inc/unomod.hxx | 4 ++-- sw/source/uibase/inc/unotxvw.hxx | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sw/source/uibase/inc') diff --git a/sw/source/uibase/inc/uivwimp.hxx b/sw/source/uibase/inc/uivwimp.hxx index a1558fd82298..94c1401a44e2 100644 --- a/sw/source/uibase/inc/uivwimp.hxx +++ b/sw/source/uibase/inc/uivwimp.hxx @@ -93,7 +93,7 @@ class SwView_Impl ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > xScanEvtLstnr; ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > xClipEvtLstnr; ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterceptor > xDisProvInterceptor; - ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionSupplier > *pxXTextView; // UNO object + ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionSupplier > mxXTextView; // UNO object com::sun::star::uno::WeakReference< com::sun::star::lang::XUnoTunnel > xTransferable; // temporary document for printing text of selection / multi selection diff --git a/sw/source/uibase/inc/unomod.hxx b/sw/source/uibase/inc/unomod.hxx index b629a16b242a..70877da36abb 100644 --- a/sw/source/uibase/inc/unomod.hxx +++ b/sw/source/uibase/inc/unomod.hxx @@ -44,8 +44,8 @@ class SwXModule : public cppu::WeakImplHelper > { - ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > * pxViewSettings; - ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > * pxPrintSettings; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxViewSettings; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxPrintSettings; protected: virtual ~SwXModule(); diff --git a/sw/source/uibase/inc/unotxvw.hxx b/sw/source/uibase/inc/unotxvw.hxx index 806d11da27b9..dfa6721a7796 100644 --- a/sw/source/uibase/inc/unotxvw.hxx +++ b/sw/source/uibase/inc/unotxvw.hxx @@ -62,10 +62,10 @@ class SwXTextView : SwView* m_pView; const SfxItemPropertySet* m_pPropSet; // property map for SwXTextView properties - // (not related to pxViewSettings!) + // (not related to mxViewSettings!) - ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > * pxViewSettings; - ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor > * pxTextViewCursor; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxViewSettings; + ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor > mxTextViewCursor; SdrObject* GetControl( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > & Model, -- cgit v1.2.3