From 0fd9b79687a9f58a407da8e46e54637f353e122b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 3 Aug 2015 14:17:20 +0200 Subject: shell,sfx2,sd: inline some use-once typedefs Change-Id: Ifde52b0d92163f99d399b4a9544a196defad1ba4 --- sd/source/ui/slideshow/slideshowviewimpl.hxx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'sd/source/ui/slideshow/slideshowviewimpl.hxx') diff --git a/sd/source/ui/slideshow/slideshowviewimpl.hxx b/sd/source/ui/slideshow/slideshowviewimpl.hxx index 01d3fe77403c..0967f311aaa9 100644 --- a/sd/source/ui/slideshow/slideshowviewimpl.hxx +++ b/sd/source/ui/slideshow/slideshowviewimpl.hxx @@ -114,8 +114,6 @@ protected: ::osl::Mutex& mrMutex; }; -typedef ::std::unique_ptr< SlideShowViewListeners > SlideShowViewListenersPtr; - // SlideShowViewPaintListeners typedef ::comphelper::OListenerContainerBase< ::com::sun::star::awt::XPaintListener, ::com::sun::star::awt::PaintEvent > SlideShowViewPaintListeners_Base; @@ -128,7 +126,6 @@ public: protected: virtual bool implTypedNotify( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPaintListener >& rListener, const ::com::sun::star::awt::PaintEvent& rEvent ) throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE; }; -typedef ::std::unique_ptr< SlideShowViewPaintListeners > SlideShowViewPaintListenersPtr; // SlideShowViewMouseListeners typedef ::comphelper::OListenerContainerBase< ::com::sun::star::awt::XMouseListener, WrappedMouseEvent > SlideShowViewMouseListeners_Base; @@ -143,7 +140,6 @@ protected: const WrappedMouseEvent& rEvent ) throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE; }; -typedef ::std::unique_ptr< SlideShowViewMouseListeners > SlideShowViewMouseListenersPtr; // SlideShowViewMouseMotionListeners typedef ::comphelper::OListenerContainerBase< ::com::sun::star::awt::XMouseMotionListener, @@ -158,7 +154,6 @@ protected: virtual bool implTypedNotify( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMouseMotionListener >& rListener, const WrappedMouseMotionEvent& rEvent ) throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE; }; -typedef ::std::unique_ptr< SlideShowViewMouseMotionListeners > SlideShowViewMouseMotionListenersPtr; // SlideShowView class ShowWindow; @@ -237,10 +232,14 @@ private: ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPointer > mxPointer; SlideshowImpl* mpSlideShow; ShowWindow& mrOutputWindow; - SlideShowViewListenersPtr mpViewListeners; - SlideShowViewPaintListenersPtr mpPaintListeners; - SlideShowViewMouseListenersPtr mpMouseListeners; - SlideShowViewMouseMotionListenersPtr mpMouseMotionListeners; + ::std::unique_ptr< SlideShowViewListeners > + mpViewListeners; + ::std::unique_ptr< SlideShowViewPaintListeners > + mpPaintListeners; + ::std::unique_ptr< SlideShowViewMouseListeners > + mpMouseListeners; + ::std::unique_ptr< SlideShowViewMouseMotionListeners > + mpMouseMotionListeners; SdDrawDocument* mpDoc; bool mbIsMouseMotionListener; Rectangle maPresentationArea; -- cgit