diff options
-rw-r--r-- | testtools/source/bridgetest/bridgetest.cxx | 6 | ||||
-rw-r--r-- | testtools/source/bridgetest/cppobj.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx index 9a31f007e1d5..6255349eea3a 100644 --- a/testtools/source/bridgetest/bridgetest.cxx +++ b/testtools/source/bridgetest/bridgetest.cxx @@ -385,7 +385,7 @@ static bool performTest( bRet &= check(aData.Any == xI, "### unexpected any!"); bRet &= check(!(aData.Any != xI), "### unexpected any!"); aData.Sequence.realloc(2); - aData.Sequence[0] = *(TestElement const *) &aData; + aData.Sequence[0] = *static_cast<TestElement const *>(&aData); // aData.Sequence[1] is empty // aSetData is a manually copy of aData for first setting: TestData aSetData; @@ -395,7 +395,7 @@ static bool performTest( aData.UHyper, aData.Float, aData.Double, aData.Enum, aData.String, xI, Any(&xI, cppu::UnoType<XInterface>::get())); aSetData.Sequence.realloc(2); - aSetData.Sequence[0] = *(TestElement const *) &aSetData; + aSetData.Sequence[0] = *static_cast<TestElement const *>(&aSetData); // aSetData.Sequence[1] is empty xLBT->setValues( aSetData.Bool, aSetData.Char, aSetData.Byte, aSetData.Short, @@ -1063,7 +1063,7 @@ uno_Sequence* cloneSequence(const uno_Sequence* val, const Type& type) } default: uno_type_sequence_construct( - &retSeq, type.getTypeLibType(), (void*) val->elements, + &retSeq, type.getTypeLibType(), const_cast<char *>(val->elements), val->nElements, reinterpret_cast< uno_AcquireFunc >(cpp_acquire)); break; } diff --git a/testtools/source/bridgetest/cppobj.cxx b/testtools/source/bridgetest/cppobj.cxx index a468d900492e..d21d753ae470 100644 --- a/testtools/source/bridgetest/cppobj.cxx +++ b/testtools/source/bridgetest/cppobj.cxx @@ -1170,7 +1170,7 @@ Sequence< OUString > Test_Impl::getSupportedServiceNames() static Reference< XInterface > SAL_CALL Test_Impl_create( SAL_UNUSED_PARAMETER const Reference< XMultiServiceFactory > & ) { - return Reference< XInterface >( (XBridgeTest *)new Test_Impl() ); + return Reference< XInterface >( static_cast<XBridgeTest *>(new Test_Impl()) ); } } |