diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-17 09:11:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-17 13:30:50 +0200 |
commit | 236d6cd67e5024ecbe9baccc8f1db597bea4bfa9 (patch) | |
tree | 7e86af6300c5692150621cddcca2a7bb6ae7ef09 /chart2/source/tools/DataSeriesHelper.cxx | |
parent | 6319265b13321d6bfb527c7bd5b910d4dce4f203 (diff) |
chart2: prefer passing OUString by reference
Change-Id: I685b1dc3d7c735bc70be29252f55c082546f3cb1
Diffstat (limited to 'chart2/source/tools/DataSeriesHelper.cxx')
-rw-r--r-- | chart2/source/tools/DataSeriesHelper.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chart2/source/tools/DataSeriesHelper.cxx b/chart2/source/tools/DataSeriesHelper.cxx index 16d36968c9b6..3b682725b850 100644 --- a/chart2/source/tools/DataSeriesHelper.cxx +++ b/chart2/source/tools/DataSeriesHelper.cxx @@ -204,7 +204,8 @@ OUString GetRole( const uno::Reference< chart2::data::XLabeledDataSequence >& xL Reference< chart2::data::XLabeledDataSequence > getDataSequenceByRole( - const Reference< chart2::data::XDataSource > & xSource, OUString aRole, + const Reference< chart2::data::XDataSource > & xSource, + const OUString& aRole, bool bMatchPrefix /* = false */ ) { Reference< chart2::data::XLabeledDataSequence > aNoResult; @@ -225,7 +226,7 @@ Reference< chart2::data::XLabeledDataSequence > ::std::vector< Reference< chart2::data::XLabeledDataSequence > > getAllDataSequencesByRole( const Sequence< Reference< chart2::data::XLabeledDataSequence > > & aDataSequences, - OUString aRole, bool bMatchPrefix /* = false */ ) + const OUString& aRole, bool bMatchPrefix /* = false */ ) { ::std::vector< Reference< chart2::data::XLabeledDataSequence > > aResultVec; ::std::remove_copy_if( aDataSequences.getConstArray(), aDataSequences.getConstArray() + aDataSequences.getLength(), |