diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-14 08:36:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-14 10:57:28 +0200 |
commit | a05da74d0bdf691f097aa925fa59e21203ade8ed (patch) | |
tree | 519ce8d2ee5c722acc46a269c67b44aec960ed97 /sw/inc/unoframe.hxx | |
parent | d32be3ace8c8fd430bbecdf69f88a116b0ee91d1 (diff) |
loplugin: cstylecast
Change-Id: I7235a67e85c10ec9fefe7f718cda18f633cda97a
Diffstat (limited to 'sw/inc/unoframe.hxx')
-rw-r--r-- | sw/inc/unoframe.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/unoframe.hxx b/sw/inc/unoframe.hxx index 08f8cf6b6b09..fa27f9711966 100644 --- a/sw/inc/unoframe.hxx +++ b/sw/inc/unoframe.hxx @@ -358,7 +358,7 @@ class SwXOLEListener : public cppu::WeakImplHelper1 { ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > xOLEModel; - SwFmt* GetFmt() const { return (SwFmt*)GetRegisteredIn(); } + SwFmt* GetFmt() const { return const_cast<SwFmt*>(static_cast<const SwFmt*>(GetRegisteredIn())); } public: SwXOLEListener(SwFmt& rOLEFmt, ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > xOLE); virtual ~SwXOLEListener(); |