diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-06 14:49:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-10 09:57:24 +0200 |
commit | 4250b25c6ae361359300ab6ccde27230f8e01039 (patch) | |
tree | 916a8420282928a92ede0760d696997550ae0840 /codemaker | |
parent | 2ed9a2b641682d8612b5404bd3978ed049aa0266 (diff) |
teach unnecessaryparen loplugin about identifiers
Change-Id: I5710b51e53779c222cec0bf08cd34bda330fec4b
Reviewed-on: https://gerrit.libreoffice.org/39737
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/cppumaker/cpputype.cxx | 10 | ||||
-rw-r--r-- | codemaker/source/javamaker/javatype.cxx | 6 |
2 files changed, 6 insertions, 10 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index a29c6610bfa3..a8ac2ba4822c 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -1238,8 +1238,8 @@ void InterfaceType::dumpMethods(FileStream & out) bool isConst; bool isRef; if (j->direction - == (unoidl::InterfaceTypeEntity::Method::Parameter:: - DIRECTION_IN)) { + == unoidl::InterfaceTypeEntity::Method::Parameter::DIRECTION_IN) + { isConst = passByReference(j->type); isRef = isConst; } else { @@ -1510,13 +1510,11 @@ void InterfaceType::dumpCppuMethods(FileStream & out, sal_uInt32 & index) << m << "].pTypeName = sParamType" << m << ".pData;\n" << indent() << "aParameters[" << m << "].bIn = " << ((param.direction - == (unoidl::InterfaceTypeEntity::Method::Parameter:: - DIRECTION_OUT)) + == unoidl::InterfaceTypeEntity::Method::Parameter::DIRECTION_OUT) ? "sal_False" : "sal_True") << ";\n" << indent() << "aParameters[" << m << "].bOut = " << ((param.direction - == (unoidl::InterfaceTypeEntity::Method::Parameter:: - DIRECTION_IN)) + == unoidl::InterfaceTypeEntity::Method::Parameter::DIRECTION_IN) ? "sal_False" : "sal_True") << ";\n"; ++m; diff --git a/codemaker/source/javamaker/javatype.cxx b/codemaker/source/javamaker/javatype.cxx index 2da2e5f925f2..1092557e888d 100644 --- a/codemaker/source/javamaker/javatype.cxx +++ b/codemaker/source/javamaker/javatype.cxx @@ -1937,11 +1937,9 @@ void handleInterfaceType( for (const unoidl::InterfaceTypeEntity::Method::Parameter& param : method.parameters) { bool in = param.direction - != (unoidl::InterfaceTypeEntity::Method::Parameter:: - DIRECTION_OUT); + != unoidl::InterfaceTypeEntity::Method::Parameter::DIRECTION_OUT; bool out = param.direction - != (unoidl::InterfaceTypeEntity::Method::Parameter:: - DIRECTION_IN); + != unoidl::InterfaceTypeEntity::Method::Parameter::DIRECTION_IN; PolymorphicUnoType polymorphicUnoType; SpecialType specialType = desc.addParameter( param.type, out, true, &polymorphicUnoType); |