summaryrefslogtreecommitdiff
path: root/starmath/inc/view.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-03 10:43:00 +0200
committerNoel Grandin <noel@peralex.com>2014-12-03 10:43:53 +0200
commit0b30d5344cad60967aa79bad86916debbf4371e9 (patch)
tree1ddd7b583532b55e155f761aa5e97f818492ad6d /starmath/inc/view.hxx
parent57fe57677887dd951000d3317690f8c628a58e02 (diff)
loplugin: cstylecast
Change-Id: I759f55218538c8d39018626f14e78cd56341d44b
Diffstat (limited to 'starmath/inc/view.hxx')
-rw-r--r--starmath/inc/view.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index e35cb244b485..fa09ba35b791 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -32,6 +32,7 @@
#include <sfx2/viewfrm.hxx>
#include <vcl/timer.hxx>
#include <svtools/colorcfg.hxx>
+#include "document.hxx"
#include "edit.hxx"
#include "node.hxx"
@@ -213,7 +214,7 @@ public:
SmEditWindow& GetEditWindow()
{
- return (((SmCmdBoxWindow *)pWindow)->GetEditWindow());
+ return static_cast<SmCmdBoxWindow *>(pWindow)->GetEditWindow();
}
};
@@ -286,7 +287,7 @@ public:
SmDocShell * GetDoc()
{
- return (SmDocShell *) GetViewFrame()->GetObjectShell();
+ return static_cast<SmDocShell *>( GetViewFrame()->GetObjectShell() );
}
SmEditWindow * GetEditWindow();