[Libreoffice-commits] core.git: include/svx svx/source
Stephan Bergmann
sbergman at redhat.com
Fri Dec 5 03:06:03 PST 2014
include/svx/svdpntv.hxx | 4 ++--
svx/source/svdraw/svdpntv.cxx | 7 +++++++
2 files changed, 9 insertions(+), 2 deletions(-)
New commits:
commit d2a90d997abb13fa994de9803a6357eda494a2c3
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Dec 5 12:05:26 2014 +0100
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: I877e3b362dd8b2f9c94e28d2ffa56c378d0d094e
diff --git a/include/svx/svdpntv.hxx b/include/svx/svdpntv.hxx
index 21d4474..a1bede0 100644
--- a/include/svx/svdpntv.hxx
+++ b/include/svx/svdpntv.hxx
@@ -519,8 +519,8 @@ public:
// bei bShow=sal_False wird der Browser destruiert
#ifdef DBG_UTIL
void ShowItemBrowser(bool bShow=true);
- bool IsItemBrowserVisible() const { return pItemBrowser!=NULL && ((vcl::Window*)pItemBrowser)->IsVisible(); }
- vcl::Window* GetItemBrowser() const { return (vcl::Window*)pItemBrowser; }
+ bool IsItemBrowserVisible() const { return pItemBrowser!=NULL && GetItemBrowser()->IsVisible(); }
+ vcl::Window* GetItemBrowser() const;
#endif
// Muss von App beim Scrollen usw. gerufen werden, damit ein u.U.
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index 4ea0087..f48611f 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -1191,6 +1191,13 @@ void SdrPaintView::SetAnimationEnabled( bool bEnable )
SetAnimationMode( bEnable ? SDR_ANIMATION_ANIMATE : SDR_ANIMATION_DISABLE );
}
+#if defined DBG_UTIL
+vcl::Window* SdrPaintView::GetItemBrowser() const
+{
+ return pItemBrowser;
+}
+#endif
+
void SdrPaintView::SetAnimationPause( bool bSet )
{
if((bool)bAnimationPause != bSet)
More information about the Libreoffice-commits
mailing list