summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-12 10:12:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-13 11:00:17 +0100
commita2b687a88feedfae0087bfc999b3cf49b9d3d24b (patch)
tree1615bf7094f106a4f92ee4aa460599a2c84282bf /sfx2
parentad6d9bce1126997750d3c3c2606d28164d63d1d8 (diff)
Pointer is pointless
since it is just a wrapper around PointerStyle Change-Id: I51f065e0d4ad8bd91f5c84c5819048c720a19267 Reviewed-on: https://gerrit.libreoffice.org/67711 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/recentdocsview.cxx1
-rw-r--r--sfx2/source/control/recentdocsviewitem.cxx3
-rw-r--r--sfx2/source/sidebar/DeckTitleBar.cxx4
3 files changed, 5 insertions, 3 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index 4c38ae64ec5a..c1173e7c2e8b 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -28,6 +28,7 @@
#include <vcl/builderfactory.hxx>
#include <vcl/event.hxx>
#include <vcl/pngread.hxx>
+#include <vcl/ptrstyle.hxx>
#include <tools/stream.hxx>
#include <tools/urlobj.hxx>
#include <com/sun/star/beans/NamedValue.hpp>
diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx
index bee417f91c7f..f1992285e782 100644
--- a/sfx2/source/control/recentdocsviewitem.cxx
+++ b/sfx2/source/control/recentdocsviewitem.cxx
@@ -22,6 +22,7 @@
#include <unotools/historyoptions.hxx>
#include <vcl/svapp.hxx>
#include <vcl/event.hxx>
+#include <vcl/ptrstyle.hxx>
#include <bitmaps.hlst>
@@ -177,7 +178,7 @@ void RecentDocsViewItem::MouseButtonUp(const MouseEvent& rMEvt)
void RecentDocsViewItem::OpenDocument()
{
// show busy mouse pointer
- mrParent.SetPointer(Pointer(PointerStyle::Wait));
+ mrParent.SetPointer(PointerStyle::Wait);
Reference<frame::XDispatch> xDispatch;
Reference<frame::XDispatchProvider> xDispatchProvider;
diff --git a/sfx2/source/sidebar/DeckTitleBar.cxx b/sfx2/source/sidebar/DeckTitleBar.cxx
index c0cf41d2e23e..601ae9966002 100644
--- a/sfx2/source/sidebar/DeckTitleBar.cxx
+++ b/sfx2/source/sidebar/DeckTitleBar.cxx
@@ -24,6 +24,7 @@
#include <sfx2/strings.hrc>
#include <vcl/image.hxx>
+#include <vcl/ptrstyle.hxx>
#ifdef DEBUG
#include <sfx2/sidebar/Tools.hxx>
@@ -134,8 +135,7 @@ void DeckTitleBar::MouseMove (const MouseEvent& rMouseEvent)
if ( aGrip.IsInside( rMouseEvent.GetPosPixel() ) )
eStyle = PointerStyle::Move;
- Pointer aPtr( eStyle );
- SetPointer( aPtr );
+ SetPointer( eStyle );
Window::MouseMove( rMouseEvent );
}