summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-05 22:54:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-07 15:18:05 +0100
commit312653feaccbedb84c4e7d36a30aabc3d8eaaa28 (patch)
treee72d209147de5c25736461b24e4567e6b6d0d473
parent5c3f46cc298d0e8dd24fa9d482110f898cc19201 (diff)
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: I125a820a8b94d6e3233b594c7db7aabe7bfd04da
-rw-r--r--sw/source/uibase/inc/view.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/uibase/inc/view.hxx b/sw/source/uibase/inc/view.hxx
index cc2948642478..64b8dc9a8735 100644
--- a/sw/source/uibase/inc/view.hxx
+++ b/sw/source/uibase/inc/view.hxx
@@ -28,6 +28,7 @@
#include <sfx2/objsh.hxx>
#include <editeng/svxenum.hxx>
#include <sfx2/zoomitem.hxx>
+#include <svx/ruler.hxx>
#include <svx/svxids.hrc>
#include <svx/fmshell.hxx>
#include <editeng/editstat.hxx>
@@ -510,11 +511,11 @@ public:
int CreateTab();
int KillTab();
- bool StatVRuler() const { return ((vcl::Window*)m_pVRuler)->IsVisible(); }
+ bool StatVRuler() const { return m_pVRuler->IsVisible(); }
void ChangeVRulerMetric(FieldUnit eUnit);
void GetVRulerMetric(FieldUnit& rToFill) const;
- bool StatTab() const { return ((vcl::Window*)m_pHRuler)->IsVisible(); }
+ bool StatTab() const { return m_pHRuler->IsVisible(); }
SvxRuler& GetHRuler() { return *m_pHRuler; }
SvxRuler& GetVRuler() { return *m_pVRuler; }
void InvalidateRulerPos();