Some more loplugin:cstylecast: ucb

Change-Id: I07c4b9b4bd61611ac11de6c70a0ca1c89cd10b3d
This commit is contained in:
Stephan Bergmann
2015-01-18 21:40:11 +01:00
parent 2850b4dc39
commit 1f041f92b4
2 changed files with 3 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ static void ooo_mount_operation_ask_password (GMountOperation *op,
{
uno::Reference< task::XInteractionHandler > xIH;
OOoMountOperation *pThis = (OOoMountOperation*)op;
OOoMountOperation *pThis = reinterpret_cast<OOoMountOperation*>(op);
const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > &xEnv = *(pThis->pEnv);
@@ -178,7 +178,7 @@ GMountOperation *ooo_mount_operation_new(const uno::Reference< ucb::XCommandEnvi
{
OOoMountOperation *pRet = (OOoMountOperation*)g_object_new (OOO_TYPE_MOUNT_OPERATION, NULL);
pRet->pEnv = &rEnv;
return (GMountOperation*)pRet;
return &pRet->parent_instance;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -220,7 +220,7 @@ extern "C" int NeonSession_ResponseBlockWriter( void * inUserData,
if ( xOutputStream.is() )
{
const uno::Sequence< sal_Int8 > aSeq( (sal_Int8 *)inBuf, inLen );
const uno::Sequence< sal_Int8 > aSeq( reinterpret_cast<sal_Int8 const *>(inBuf), inLen );
xOutputStream->writeBytes( aSeq );
}
}