summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-05 18:35:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-05 18:35:34 +0100
commitb42c5a7809b8ca9eaef757897215b3225bce8056 (patch)
tree2864a5fe48408a91dd5f581242fb47fbaa8f5165 /sd
parentab42bf5656938bb231fa8f3a0f7d14f2f85315a2 (diff)
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: I4b892790a16892396252467b3f3c31240b2f64e8
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/inc/slideshow.hxx3
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx2
-rw-r--r--sd/source/ui/view/drawview.cxx2
3 files changed, 4 insertions, 3 deletions
diff --git a/sd/source/ui/inc/slideshow.hxx b/sd/source/ui/inc/slideshow.hxx
index fda3d8a2da9b..2a35f130e31f 100644
--- a/sd/source/ui/inc/slideshow.hxx
+++ b/sd/source/ui/inc/slideshow.hxx
@@ -46,6 +46,7 @@ namespace com { namespace sun { namespace star {
class SdDrawDocument;
class KeyEvent;
+class OutputDevice;
class Size;
class Rectangle;
namespace vcl { class Window; }
@@ -158,7 +159,7 @@ public:
// settings
bool isFullScreen(); // a.k.a. FuSlideShow::IsFullScreen()
bool isAlwaysOnTop(); // a.k.a. FuSlideShow::IsAlwaysOnTop();
- ShowWindow* getShowWindow(); // a.k.a. FuSlideShow::GetShowWindow()
+ OutputDevice* getShowWindow(); // a.k.a. FuSlideShow::GetShowWindow()
int getAnimationMode(); // a.k.a. FuSlideShow::GetAnimationMode()
sal_Int32 getCurrentPageNumber(); // a.k.a. FuSlideShow::GetCurrentPage()
sal_Int32 getFirstPageNumber();
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index 85ac816c667b..dcb5dbc22f1f 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -925,7 +925,7 @@ bool SlideShow::startPreview( const Reference< XDrawPage >& xDrawPage, const Ref
return true;
}
-ShowWindow* SlideShow::getShowWindow()
+OutputDevice* SlideShow::getShowWindow()
{
return mxController.is() ? mxController->mpShowWindow : 0;
}
diff --git a/sd/source/ui/view/drawview.cxx b/sd/source/ui/view/drawview.cxx
index 131db8b92de6..b2b2d7822a02 100644
--- a/sd/source/ui/view/drawview.cxx
+++ b/sd/source/ui/view/drawview.cxx
@@ -471,7 +471,7 @@ void DrawView::CompleteRedraw(OutputDevice* pOutDev, const vcl::Region& rReg, sd
rtl::Reference< sd::SlideShow > xSlideshow( SlideShow::GetSlideShow( pDoc ) );
if(xSlideshow.is() && xSlideshow->isRunning())
{
- OutputDevice* pShowWindow = ( OutputDevice* )xSlideshow->getShowWindow();
+ OutputDevice* pShowWindow = xSlideshow->getShowWindow();
if( (pShowWindow == pOutDev) || (xSlideshow->getAnimationMode() == ANIMATIONMODE_PREVIEW) )
{
if( pShowWindow == pOutDev )