diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-01-26 02:20:13 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-01-26 02:25:59 +0100 |
commit | aac5cb1d3203a52966a539df729716c51d874ea4 (patch) | |
tree | 52a854f0468d84c7f93262723343d6e14a5c5c43 /sc | |
parent | remove some data members from the class (diff) | |
download | core-aac5cb1d3203a52966a539df729716c51d874ea4.tar.gz core-aac5cb1d3203a52966a539df729716c51d874ea4.zip |
remove unnecessary calls to copy c'tor
Change-Id: I78ef9901a42e65c5d7fb6f8048a114ba23f9ce98
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/markdata.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/core/data/markdata.cxx b/sc/source/core/data/markdata.cxx index f87e24db33f6..9cb84ae0248f 100644 --- a/sc/source/core/data/markdata.cxx +++ b/sc/source/core/data/markdata.cxx @@ -355,17 +355,17 @@ void ScMarkData::MarkFromRangeList( const ScRangeList& rList, bool bReset ) size_t nCount = rList.size(); if ( nCount == 1 && !bMarked && !bMultiMarked ) { - ScRange aRange = *rList[ 0 ]; - SetMarkArea( aRange ); - SelectTable( aRange.aStart.Tab(), true ); + const ScRange& rRange = *rList[ 0 ]; + SetMarkArea( rRange ); + SelectTable( rRange.aStart.Tab(), true ); } else { for (size_t i=0; i < nCount; i++) { - ScRange aRange = *rList[ i ]; - SetMultiMarkArea( aRange, true ); - SelectTable( aRange.aStart.Tab(), true ); + const ScRange& rRange = *rList[ i ]; + SetMultiMarkArea( rRange, true ); + SelectTable( rRange.aStart.Tab(), true ); } } } |