From 56901f69d484ebc3749b3b77aef99b0d4bfdd21e Mon Sep 17 00:00:00 2001 From: Zdibák Zoltán Date: Tue, 30 Oct 2018 19:04:04 +0100 Subject: RedundantAssignment variable aResult1 Change-Id: I9c8a40389cc9cc18a017f5ab98aa022856ef301d Reviewed-on: https://gerrit.libreoffice.org/62642 Reviewed-by: Markus Mohrhard Tested-by: Jenkins --- sc/source/core/data/markmulti.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc/source/core/data/markmulti.cxx b/sc/source/core/data/markmulti.cxx index 52d8cb3cc07e..8dc8ab37e127 100644 --- a/sc/source/core/data/markmulti.cxx +++ b/sc/source/core/data/markmulti.cxx @@ -81,9 +81,9 @@ bool ScMultiSel::HasMarks( SCCOL nCol ) const bool ScMultiSel::HasOneMark( SCCOL nCol, SCROW& rStartRow, SCROW& rEndRow ) const { - bool aResult1 = false, aResult2 = false; + bool aResult2 = false; SCROW nRow1 = -1, nRow2 = -1, nRow3 = -1, nRow4 = -1; - aResult1 = aRowSel.HasOneMark( nRow1, nRow2 ); + bool aResult1 = aRowSel.HasOneMark( nRow1, nRow2 ); MapType::const_iterator aIter = aMultiSelContainer.find( nCol ); if ( aIter != aMultiSelContainer.end() ) aResult2 = aIter->second.HasOneMark( nRow3, nRow4 ); -- cgit