summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 13:34:05 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 09:21:39 +0200
commit00240e54ed826618e08a0ca2b94fa7caac8f4e1a (patch)
tree452744a020e01431e3cab3a9c9b06302568b4ece /include
parent828ed49a24018a30f03ce1c6f0b79f7068ba2bb2 (diff)
loplugin:passstuffbyref in unoidl
Change-Id: Id8cca55a9e179cf7dbbc09b553ec9a00b9ef03ef
Diffstat (limited to 'include')
-rw-r--r--include/unoidl/unoidl.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/unoidl/unoidl.hxx b/include/unoidl/unoidl.hxx
index 3c87a7e963d2..8837c6d961a6 100644
--- a/include/unoidl/unoidl.hxx
+++ b/include/unoidl/unoidl.hxx
@@ -33,7 +33,7 @@ public:
virtual SAL_DLLPRIVATE ~NoSuchFileException() throw ();
- rtl::OUString getUri() const { return uri_; }
+ const rtl::OUString& getUri() const { return uri_; }
private:
void operator =(NoSuchFileException) = delete;
@@ -54,9 +54,9 @@ public:
virtual SAL_DLLPRIVATE ~FileFormatException() throw ();
- rtl::OUString getUri() const { return uri_; }
+ const rtl::OUString& getUri() const { return uri_; }
- rtl::OUString getDetail() const { return detail_; }
+ const rtl::OUString& getDetail() const { return detail_; }
private:
void operator =(FileFormatException) = delete;
@@ -199,7 +199,7 @@ public:
directBase_(directBase), directMembers_(directMembers)
{}
- rtl::OUString getDirectBase() const { return directBase_; }
+ const rtl::OUString& getDirectBase() const { return directBase_; }
std::vector< Member > const & getDirectMembers() const
{ return directMembers_; }
@@ -278,7 +278,7 @@ public:
directBase_(directBase), directMembers_(directMembers)
{}
- rtl::OUString getDirectBase() const { return directBase_; }
+ const rtl::OUString& getDirectBase() const { return directBase_; }
std::vector< Member > const & getDirectMembers() const
{ return directMembers_; }
@@ -398,7 +398,7 @@ public:
PublishableEntity(SORT_TYPEDEF, published, annotations), type_(type)
{}
- rtl::OUString getType() const { return type_; }
+ const rtl::OUString& getType() const { return type_; }
private:
virtual SAL_DLLPRIVATE ~TypedefEntity() throw ();
@@ -535,7 +535,7 @@ public:
base_(base), constructors_(constructors)
{}
- rtl::OUString getBase() const { return base_; }
+ const rtl::OUString& getBase() const { return base_; }
std::vector< Constructor > const & getConstructors() const
{ return constructors_; }
@@ -639,7 +639,7 @@ public:
base_(base)
{}
- rtl::OUString getBase() const { return base_; }
+ const rtl::OUString& getBase() const { return base_; }
private:
virtual SAL_DLLPRIVATE ~InterfaceBasedSingletonEntity() throw ();
@@ -657,7 +657,7 @@ public:
base_(base)
{}
- rtl::OUString getBase() const { return base_; }
+ const rtl::OUString& getBase() const { return base_; }
private:
virtual SAL_DLLPRIVATE ~ServiceBasedSingletonEntity() throw ();