diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-05-23 11:36:56 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-05-23 11:47:51 +0300 |
commit | cf287f4e3ff632b9ffbecc753ef9a17f27b6c04a (patch) | |
tree | bc2aa10463ccf3934a5671a198c6773aa4075f57 | |
parent | Avoid possible memory leaks in case of exceptions (diff) | |
download | core-cf287f4e3ff632b9ffbecc753ef9a17f27b6c04a.tar.gz core-cf287f4e3ff632b9ffbecc753ef9a17f27b6c04a.zip |
WaE: passing class rtl::OUString by value, rather pass by reference
Change-Id: I05aa9a5ad5d97a1ead3d30298f45e7aeb62d0652
-rw-r--r-- | include/oox/drawingml/fillproperties.hxx | 2 | ||||
-rw-r--r-- | oox/source/drawingml/fillproperties.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/oox/drawingml/fillproperties.hxx b/include/oox/drawingml/fillproperties.hxx index dcf3afbfd230..550fd825176b 100644 --- a/include/oox/drawingml/fillproperties.hxx +++ b/include/oox/drawingml/fillproperties.hxx @@ -86,7 +86,7 @@ struct ArtisticEffectProperties static OUString getEffectString( sal_Int32 nToken ); /** Translate effect strings to tokens. */ - static sal_Int32 getEffectToken( OUString sName ); + static sal_Int32 getEffectToken( const OUString& sName ); }; struct BlipFillProperties diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx index 96770425b047..7abd50089d46 100644 --- a/oox/source/drawingml/fillproperties.cxx +++ b/oox/source/drawingml/fillproperties.cxx @@ -701,7 +701,7 @@ OUString ArtisticEffectProperties::getEffectString( sal_Int32 nToken ) return OUString(); } -sal_Int32 ArtisticEffectProperties::getEffectToken( OUString sName ) +sal_Int32 ArtisticEffectProperties::getEffectToken( const OUString& sName ) { // effects if( sName == "artisticBlur" ) |