[Libreoffice-commits] core.git: cui/source
Stephan Bergmann
sbergman at redhat.com
Fri Dec 5 07:40:11 PST 2014
cui/source/tabpages/page.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 48637482d2fb22baef261238f17df00f0149dd08
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Dec 5 16:39:30 2014 +0100
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: I45e34a9369b31fa284bc0fc0176c7efd81b527d4
diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx
index 74f1091..3c411a5 100644
--- a/cui/source/tabpages/page.cxx
+++ b/cui/source/tabpages/page.cxx
@@ -19,6 +19,7 @@
#include <sfx2/app.hxx>
#include <sfx2/objsh.hxx>
+#include <sfx2/printer.hxx>
#include <tools/resary.hxx>
#include <vcl/graph.hxx>
#include <sfx2/viewsh.hxx>
@@ -295,7 +296,7 @@ SvxPageDescPage::SvxPageDescPage( vcl::Window* pParent, const SfxItemSet& rAttr
if ( SfxViewShell::Current() && SfxViewShell::Current()->GetPrinter() )
{
- mpDefPrinter = (Printer*)SfxViewShell::Current()->GetPrinter();
+ mpDefPrinter = SfxViewShell::Current()->GetPrinter();
}
else
{
More information about the Libreoffice-commits
mailing list