From 9ac8a57e52a25870d497241c64bff3da0272cf4d Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 16 Oct 2016 09:40:42 +0200 Subject: 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 Reviewed-by: Jochen Nitschke --- extensions/test/ole/OleClient/clientTest.cxx | 34 ++++++++++++++-------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'extensions') 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 & inv) arArgs[0] <<= (sal_Int32) 123; Sequence seqPositional2(arArgs, 1); - arArgs[0] <<= Any(); - arArgs[1] <<= Any(); + arArgs[0].clear(); + arArgs[1].clear(); Sequence seqPositional3(arArgs, 2); arArgs[0] <<= (sal_Int32) 123; @@ -172,7 +172,7 @@ bool doParameterTest(const Reference & inv) arArgs1[3] <<= arg4; Sequence seqMix(arArgs1, 4); - arArgs1[0] <<= Any(); + arArgs1[0].clear(); arArgs1[1] <<= (sal_Int32) 456; arArgs1[2] <<= arg4; Sequence seqMix2(arArgs1, 3); @@ -184,7 +184,7 @@ bool doParameterTest(const Reference & inv) Sequence seqMixOut(arArgs1, 4); arArgs1[0] <<= SCode(DISP_E_PARAMNOTFOUND); - arArgs1[1] <<= Any(); + arArgs1[1].clear(); arArgs1[2] <<= arg4; Sequence seqMix2Out(arArgs1, 3); @@ -455,17 +455,17 @@ bool doPropertyWithArgumentTest(const Reference & inv) Sequence 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 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 seqMultiArgPut1(arMultiArgs, 3); - arMultiArgs[0] <<= makeAny((sal_Int32) 1); + arMultiArgs[0] = makeAny((sal_Int32) 1); arMultiArgs[1] <<= PropertyPutArgument(makeAny((sal_Int32) 3)); Sequence seqMultiArgPut2(arMultiArgs, 2); @@ -477,26 +477,26 @@ bool doPropertyWithArgumentTest(const Reference & inv) arMultiArgs[1] <<= NamedArgument(OUString(L"val3"), makeAny((sal_Int32) 3)); Sequence 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 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 seqMultiArgGet1(arMultiArgs, 2); Sequence seqMultiArgGet2(arMultiArgs, 1); - arMultiArgs[0] <<= makeAny((sal_Int32) 0); + arMultiArgs[0] = makeAny((sal_Int32) 0); arMultiArgs[1] <<= PropertyPutArgument(makeAny((sal_Int32) 0)); Sequence seqMultiArgPut5(arMultiArgs, 2); - arMultiArgs[0] <<= makeAny((sal_Int32) 1); + arMultiArgs[0] = makeAny((sal_Int32) 1); arMultiArgs[1] <<= PropertyPutArgument(makeAny((sal_Int32) 2)); Sequence seqMultiArgPut6(arMultiArgs, 2); - arMultiArgs[0] <<= Any(); - arMultiArgs[1] <<= Any(); + arMultiArgs[0].clear(); + arMultiArgs[1].clear(); Sequence seqMultiVoid(arMultiArgs, 2); arMultiArgs[0] = makeAny((sal_Int32) 0); -- cgit