[Libreoffice-commits] .: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Jan 25 17:24:53 PST 2013
sc/source/core/data/markdata.cxx | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
New commits:
commit aac5cb1d3203a52966a539df729716c51d874ea4
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sat Jan 26 02:20:13 2013 +0100
remove unnecessary calls to copy c'tor
Change-Id: I78ef9901a42e65c5d7fb6f8048a114ba23f9ce98
diff --git a/sc/source/core/data/markdata.cxx b/sc/source/core/data/markdata.cxx
index f87e24d..9cb84ae 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 );
}
}
}
More information about the Libreoffice-commits
mailing list