diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-07 13:32:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-07 15:18:07 +0100 |
commit | 7e174e7e76ec942870b9b8366306edb6dcdb8b2b (patch) | |
tree | b55c38934c7c13a61bac5708b13093f1e227a5bc | |
parent | b06095804fe48f858d956400dcfaa08ffc2ae6ec (diff) |
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: Ida681fd1c36219c1ccbdb4bb54196cf737c88b4b
-rw-r--r-- | sw/source/ui/frmdlg/wrap.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/frmdlg/wrap.cxx b/sw/source/ui/frmdlg/wrap.cxx index cee2b50cc1c9..d5d84c64560c 100644 --- a/sw/source/ui/frmdlg/wrap.cxx +++ b/sw/source/ui/frmdlg/wrap.cxx @@ -31,6 +31,7 @@ #include <svx/swframevalidation.hxx> #include "cmdid.h" +#include <docsh.hxx> #include "uitool.hxx" #include "wrtsh.hxx" #include "swmodule.hxx" @@ -169,7 +170,7 @@ void SwWrapTabPage::Reset(const SfxItemSet *rSet) } } - nHtmlMode = ::GetHtmlMode((const SwDocShell*)SfxObjectShell::Current()); + nHtmlMode = ::GetHtmlMode(static_cast<const SwDocShell*>(SfxObjectShell::Current())); bHtmlMode = (nHtmlMode & HTMLMODE_ON) != 0; FieldUnit aMetric = ::GetDfltMetric(bHtmlMode); |