diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-18 21:40:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:53 +0100 |
commit | 1f041f92b47ad8c3fbbcd37aead60cf000d4355d (patch) | |
tree | caee3a6dcd9e602b9403257befb55973ab33151c /ucb | |
parent | 2850b4dc39069d128768084a67b24927f392448a (diff) |
Some more loplugin:cstylecast: ucb
Change-Id: I07c4b9b4bd61611ac11de6c70a0ca1c89cd10b3d
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/gio/gio_mount.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonSession.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/gio/gio_mount.cxx b/ucb/source/ucp/gio/gio_mount.cxx index ec1cd8c0f94a..957a62b92f5a 100644 --- a/ucb/source/ucp/gio/gio_mount.cxx +++ b/ucb/source/ucp/gio/gio_mount.cxx @@ -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: */ diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx index 954e81f2336b..6f1f81a82625 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.cxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx @@ -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 ); } } |