summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-03 14:17:20 +0200
committerNoel Grandin <noel@peralex.com>2015-08-04 08:55:56 +0200
commit0fd9b79687a9f58a407da8e46e54637f353e122b (patch)
tree8a053b46cd8f29e90756edd9ea2bc1a84666ed8d /sd
parent3fc7f4c582c04a11bbd6ebede8e8bdc99f3b2034 (diff)
shell,sfx2,sd: inline some use-once typedefs
Change-Id: Ifde52b0d92163f99d399b4a9544a196defad1ba4
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/html/buttonset.cxx3
-rw-r--r--sd/source/ui/slideshow/slideshowviewimpl.hxx17
2 files changed, 9 insertions, 11 deletions
diff --git a/sd/source/filter/html/buttonset.cxx b/sd/source/filter/html/buttonset.cxx
index ab7590f09bee..8ab49ffba8a8 100644
--- a/sd/source/filter/html/buttonset.cxx
+++ b/sd/source/filter/html/buttonset.cxx
@@ -133,7 +133,6 @@ bool ButtonsImpl::copyGraphic( const OUString& rName, const OUString& rPath )
return false;
}
-typedef std::vector< boost::shared_ptr< ButtonsImpl > > ButtonVector;
class ButtonSetImpl
{
public:
@@ -148,7 +147,7 @@ public:
Reference< XGraphicProvider > getGraphicProvider();
- ButtonVector maButtons;
+ std::vector< boost::shared_ptr< ButtonsImpl > > maButtons;
Reference< XGraphicProvider > mxGraphicProvider;
};
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;