From c10f93bdb8ebd21ecd1b5e06785a5b606575e927 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 6 Dec 2014 00:00:02 +0100 Subject: loplugin:cstylecast, involving pointer to incomplete type Change-Id: Iffba3808e2a46270ae13d0a3dce6d0453e096f07 --- sw/source/uibase/app/docsh2.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx index 6246434e2b6f..9bb10f182e6b 100644 --- a/sw/source/uibase/app/docsh2.cxx +++ b/sw/source/uibase/app/docsh2.cxx @@ -25,6 +25,7 @@ #include +#include #include #include #include @@ -814,7 +815,7 @@ void SwDocShell::Execute(SfxRequest& rReq) pClipCntnr->CopyAnyData( FORMAT_RTF, (sal_Char*) pStrm->GetData(), pStrm->GetEndOfData() ); pClipCntnr->CopyToClipboard( - GetView()? (vcl::Window*)&GetView()->GetEditWin() : 0 ); + GetView()? &GetView()->GetEditWin() : 0 ); delete pStrm; } } @@ -1482,7 +1483,7 @@ SfxInPlaceClient* SwDocShell::GetIPClient( const ::svt::EmbeddedObjectRef& xObjR SwWrtShell* pShell = GetWrtShell(); if ( pShell ) { - pResult = pShell->GetView().FindIPClient( xObjRef.GetObject(), (vcl::Window*)&pShell->GetView().GetEditWin() ); + pResult = pShell->GetView().FindIPClient( xObjRef.GetObject(), &pShell->GetView().GetEditWin() ); if ( !pResult ) pResult = new SwOleClient( &pShell->GetView(), &pShell->GetView().GetEditWin(), xObjRef ); } -- cgit