summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-04 11:59:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-04 11:59:23 +0200
commit6e70103da07ec67b1c1f106a8fcd064e3df97271 (patch)
tree091834cdeb1358b9b3b0c3416f8672cc7cfb26d0 /testtools
parent019a0fbdd860994ba727f19eba0879136406d0f9 (diff)
While at it, delete Any functions on sal_Bool*
(at least for LIBO_INTERNAL_ONLY), to help further reduce the occurrences of sal_Bool across the code base Change-Id: I70654a0cb56655984c717b7b894f26c9ab47536e
Diffstat (limited to 'testtools')
-rw-r--r--testtools/source/bridgetest/bridgetest.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx
index df7e87a3865f..b4261947049c 100644
--- a/testtools/source/bridgetest/bridgetest.cxx
+++ b/testtools/source/bridgetest/bridgetest.cxx
@@ -270,7 +270,7 @@ static bool performAnyTest( const Reference< XBridgeTest > &xLBT, const TestData
Any a;
{
- a.setValue( &(data.Bool) , cppu::UnoType<bool>::get() );
+ a <<= data.Bool;
OSL_ASSERT( xLBT->transportAny( a ) == a );
}
@@ -643,10 +643,9 @@ static bool performTest(
// compared with the results:
sal_Int32 _arLong[] = {
static_cast< sal_Int32 >(0x80000000), 1, 0x7FFFFFFF };
- sal_Bool _aBool = true;
sal_Int32 _aInt = 0xBABEBABE;
float _aFloat = 3.14f;
- Any _any1(&_aBool, cppu::UnoType<bool>::get());
+ Any _any1(true);
Any _any2(&_aInt, cppu::UnoType<sal_Int32>::get());
Any _any3(&_aFloat, cppu::UnoType<float>::get());
Any _arAny[] = { _any1, _any2, _any3 };