diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-14 09:58:40 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-05-14 08:10:22 +0000 |
commit | 248145f99e95cc30bb6231a8e5ea4e294f147040 (patch) | |
tree | c3b5c1e226cc631cde530f2cfb7df2d46f00b8c9 /include/unotools | |
parent | 671eb12dee290607ed66f3b325f28e7bd4695cba (diff) |
Find places where uno::Sequence is passed by value.
Implement a clang plugin to find them, and clean up existing code
to pass them by reference.
Change-Id: If642d87407c73346d9c0164b9fc77c5c3c4354b8
Reviewed-on: https://gerrit.libreoffice.org/9351
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/unotools')
-rw-r--r-- | include/unotools/configitem.hxx | 4 | ||||
-rw-r--r-- | include/unotools/lingucfg.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/unotools/configitem.hxx b/include/unotools/configitem.hxx index 12965fd31b82..a08df2da504d 100644 --- a/include/unotools/configitem.hxx +++ b/include/unotools/configitem.hxx @@ -149,9 +149,9 @@ namespace utl bool ClearNodeElements(const OUString& rNode, com::sun::star::uno::Sequence< OUString >& rElements); // change or add members to a set - bool SetSetProperties(const OUString& rNode, com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > rValues); + bool SetSetProperties(const OUString& rNode, const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rValues); // remove, change or add members of a set - bool ReplaceSetProperties(const OUString& rNode, com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > rValues); + bool ReplaceSetProperties(const OUString& rNode, const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rValues); // add a new node without setting any properties bool AddNode(const OUString& rNode, const OUString& rNewNode); diff --git a/include/unotools/lingucfg.hxx b/include/unotools/lingucfg.hxx index c55f55f5a1fc..82c56f4c7eae 100644 --- a/include/unotools/lingucfg.hxx +++ b/include/unotools/lingucfg.hxx @@ -174,7 +174,7 @@ public: bool ReplaceSetProperties( const OUString &rNode, - com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > rValues ); + const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rValues ); com::sun::star::uno::Any GetProperty( const OUString &rPropertyName ) const; |