diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-10-16 09:40:42 +0200 |
---|---|---|
committer | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-10-17 15:39:13 +0000 |
commit | 9ac8a57e52a25870d497241c64bff3da0272cf4d (patch) | |
tree | 28841f59f47f03b3cba8a42c3249b299c498c2cd /extensions/test/ole | |
parent | a8cfb651ac0d2669d5780b707bfb1efb43f0f34c (diff) |
replace <<= with assign for <<= with rhs Any
makeAny and Any ctor return an Any
Change-Id: Iaa361bc315d785f80153acf1009bf47d109728ec
Reviewed-on: https://gerrit.libreoffice.org/29914
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'extensions/test/ole')
-rw-r--r-- | extensions/test/ole/OleClient/clientTest.cxx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/extensions/test/ole/OleClient/clientTest.cxx b/extensions/test/ole/OleClient/clientTest.cxx index d2700be2f1f3..675b2a66d09c 100644 --- a/extensions/test/ole/OleClient/clientTest.cxx +++ b/extensions/test/ole/OleClient/clientTest.cxx @@ -144,8 +144,8 @@ bool doParameterTest(const Reference<XInvocation> & inv) arArgs[0] <<= (sal_Int32) 123; Sequence<Any> seqPositional2(arArgs, 1); - arArgs[0] <<= Any(); - arArgs[1] <<= Any(); + arArgs[0].clear(); + arArgs[1].clear(); Sequence<Any> seqPositional3(arArgs, 2); arArgs[0] <<= (sal_Int32) 123; @@ -172,7 +172,7 @@ bool doParameterTest(const Reference<XInvocation> & inv) arArgs1[3] <<= arg4; Sequence<Any> seqMix(arArgs1, 4); - arArgs1[0] <<= Any(); + arArgs1[0].clear(); arArgs1[1] <<= (sal_Int32) 456; arArgs1[2] <<= arg4; Sequence<Any> seqMix2(arArgs1, 3); @@ -184,7 +184,7 @@ bool doParameterTest(const Reference<XInvocation> & inv) Sequence<Any> seqMixOut(arArgs1, 4); arArgs1[0] <<= SCode(DISP_E_PARAMNOTFOUND); - arArgs1[1] <<= Any(); + arArgs1[1].clear(); arArgs1[2] <<= arg4; Sequence<Any> seqMix2Out(arArgs1, 3); @@ -455,17 +455,17 @@ bool doPropertyWithArgumentTest(const Reference<XInvocation> & inv) Sequence<Any> seqOut; Any arMultiArgs[3]; - arMultiArgs[0] <<= makeAny((sal_Int32) 0); - arMultiArgs[1] <<= makeAny((sal_Int32) 0); + arMultiArgs[0] = makeAny((sal_Int32) 0); + arMultiArgs[1] = makeAny((sal_Int32) 0); arMultiArgs[2] <<= PropertyPutArgument(makeAny((sal_Int32) 0)); Sequence<Any> seqMultiArgPut0(arMultiArgs, 3); - arMultiArgs[0] <<= makeAny((sal_Int32) 1); - arMultiArgs[1] <<= makeAny((sal_Int32) 2); + arMultiArgs[0] = makeAny((sal_Int32) 1); + arMultiArgs[1] = makeAny((sal_Int32) 2); arMultiArgs[2] <<= PropertyPutArgument(makeAny((sal_Int32) 3)); Sequence<Any> seqMultiArgPut1(arMultiArgs, 3); - arMultiArgs[0] <<= makeAny((sal_Int32) 1); + arMultiArgs[0] = makeAny((sal_Int32) 1); arMultiArgs[1] <<= PropertyPutArgument(makeAny((sal_Int32) 3)); Sequence<Any> seqMultiArgPut2(arMultiArgs, 2); @@ -477,26 +477,26 @@ bool doPropertyWithArgumentTest(const Reference<XInvocation> & inv) arMultiArgs[1] <<= NamedArgument(OUString(L"val3"), makeAny((sal_Int32) 3)); Sequence<Any> seqMultiArgPut4(arMultiArgs, 2); - arMultiArgs[0] <<= makeAny((sal_Int32) 0); - arMultiArgs[1] <<= makeAny((sal_Int32) 0); + arMultiArgs[0] = makeAny((sal_Int32) 0); + arMultiArgs[1] = makeAny((sal_Int32) 0); Sequence<Any> seqMultiArgGet0(arMultiArgs, 2); - arMultiArgs[0] <<= makeAny((sal_Int32) 1); - arMultiArgs[1] <<= makeAny((sal_Int32) 2); + arMultiArgs[0] = makeAny((sal_Int32) 1); + arMultiArgs[1] = makeAny((sal_Int32) 2); Sequence<Any> seqMultiArgGet1(arMultiArgs, 2); Sequence<Any> seqMultiArgGet2(arMultiArgs, 1); - arMultiArgs[0] <<= makeAny((sal_Int32) 0); + arMultiArgs[0] = makeAny((sal_Int32) 0); arMultiArgs[1] <<= PropertyPutArgument(makeAny((sal_Int32) 0)); Sequence<Any> seqMultiArgPut5(arMultiArgs, 2); - arMultiArgs[0] <<= makeAny((sal_Int32) 1); + arMultiArgs[0] = makeAny((sal_Int32) 1); arMultiArgs[1] <<= PropertyPutArgument(makeAny((sal_Int32) 2)); Sequence<Any> seqMultiArgPut6(arMultiArgs, 2); - arMultiArgs[0] <<= Any(); - arMultiArgs[1] <<= Any(); + arMultiArgs[0].clear(); + arMultiArgs[1].clear(); Sequence<Any> seqMultiVoid(arMultiArgs, 2); arMultiArgs[0] = makeAny((sal_Int32) 0); |