diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-14 11:36:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-17 09:00:07 +0200 |
commit | c58fe8c85f159c6b456223b51981f411e312e33b (patch) | |
tree | ebef7d946d80be91e26f08c932aa628571b0d127 /codemaker | |
parent | c0a6e9a1baa7664ea62a3942f43f7bd79cf3fcc6 (diff) |
codemaker,editeng: prefer passing OUString by reference
Change-Id: If3e2dd3905cc33f1e7fc9fbfbb9f2bb49a756a34
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/codemaker/global.cxx | 6 | ||||
-rw-r--r-- | codemaker/source/javamaker/javatype.cxx | 16 |
2 files changed, 11 insertions, 11 deletions
diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx index 9ec4d6b1692b..202f64af6065 100644 --- a/codemaker/source/codemaker/global.cxx +++ b/codemaker/source/codemaker/global.cxx @@ -63,10 +63,10 @@ OString getTempDir(const OString& sFileName) } OString createFileNameFromType( const OString& destination, - const OString typeName, - const OString postfix, + const OString& typeName, + const OString& postfix, bool bLowerCase, - const OString prefix ) + const OString& prefix ) { OString type(typeName.replace('.', '/')); diff --git a/codemaker/source/javamaker/javatype.cxx b/codemaker/source/javamaker/javatype.cxx index e7d3f6d39435..f40b80f11061 100644 --- a/codemaker/source/javamaker/javatype.cxx +++ b/codemaker/source/javamaker/javatype.cxx @@ -691,7 +691,7 @@ void addTypeInfo( } void handleEnumType( - OUString name, rtl::Reference< unoidl::EnumTypeEntity > const & entity, + const OUString& name, rtl::Reference< unoidl::EnumTypeEntity > const & entity, JavaOptions const & options) { assert(entity.is()); @@ -1406,7 +1406,7 @@ void addPlainStructBaseArguments( } void handlePlainStructType( - OUString name, + const OUString& name, rtl::Reference< unoidl::PlainStructTypeEntity > const & entity, rtl::Reference< TypeManager > const & manager, JavaOptions const & options, Dependencies * dependencies) @@ -1491,7 +1491,7 @@ void handlePlainStructType( } void handlePolyStructType( - OUString name, + const OUString& name, rtl::Reference< unoidl::PolymorphicStructTypeTemplateEntity > const & entity, rtl::Reference< TypeManager > const & manager, JavaOptions const & options, @@ -1626,7 +1626,7 @@ void addExceptionBaseArguments( } void handleExceptionType( - OUString name, rtl::Reference< unoidl::ExceptionTypeEntity > const & entity, + const OUString& name, rtl::Reference< unoidl::ExceptionTypeEntity > const & entity, rtl::Reference< TypeManager > const & manager, JavaOptions const & options, Dependencies * dependencies) { @@ -1797,7 +1797,7 @@ void createExceptionsAttribute( } void handleInterfaceType( - OUString name, rtl::Reference< unoidl::InterfaceTypeEntity > const & entity, + const OUString& name, rtl::Reference< unoidl::InterfaceTypeEntity > const & entity, rtl::Reference< TypeManager > const & manager, JavaOptions const & options, Dependencies * dependencies) { @@ -1956,7 +1956,7 @@ void handleTypedef( } void handleConstantGroup( - OUString name, rtl::Reference< unoidl::ConstantGroupEntity > const & entity, + const OUString& name, rtl::Reference< unoidl::ConstantGroupEntity > const & entity, rtl::Reference< TypeManager > const & manager, JavaOptions const & options, Dependencies * dependencies) { @@ -2208,7 +2208,7 @@ void addConstructor( } void handleService( - OUString name, + const OUString& name, rtl::Reference< unoidl::SingleInterfaceBasedServiceEntity > const & entity, rtl::Reference< TypeManager > const & manager, JavaOptions const & options, Dependencies * dependencies) @@ -2307,7 +2307,7 @@ void handleService( } void handleSingleton( - OUString name, + const OUString& name, rtl::Reference< unoidl::InterfaceBasedSingletonEntity > const & entity, rtl::Reference< TypeManager > const & manager, JavaOptions const & options, Dependencies * dependencies) |