diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-12-06 15:30:20 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-12-06 17:19:17 +0000 |
commit | 0e1528f1b4cd76804f5df0d75438a6f392a77d1b (patch) | |
tree | 5deeaacfddd2201add5d55ab76f9a44880c1f337 /filter | |
parent | -Werror,-Wunused-private-field (diff) | |
download | core-0e1528f1b4cd76804f5df0d75438a6f392a77d1b.tar.gz core-0e1528f1b4cd76804f5df0d75438a6f392a77d1b.zip |
just use return value optimization
Change-Id: I2c7937c238d90192383e20923f62233821445c10
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/escherex.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index f27f2b90675c..c57ca80646e1 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -729,10 +729,9 @@ sal_Bool EscherPropertyContainer::GetLineArrow( const sal_Bool bLineStart, aAny, rXPropSet, sLineName, sal_False ) ) { String aArrowStartName = *(::rtl::OUString*)aAny.getValue(); - rtl::OUString aApiName; sal_Int16 nWhich = bLineStart ? XATTR_LINESTART : XATTR_LINEEND; - SvxUnogetApiNameForItem( nWhich, aArrowStartName, aApiName ); + OUString aApiName = SvxUnogetApiNameForItem(nWhich, aArrowStartName); if ( !aApiName.isEmpty() ) { |