summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-09-16 09:59:10 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2020-09-16 11:16:13 +0200
commit9ecf3cec2bd83791d777bb95ab614c137bfbb45a (patch)
treeee5cf6da2f85477b3fdefcba750dce7d6d47ae55
parent9dcf0da44e4abb92ae6f3846f6dc7383e486617e (diff)
Simplify initialization
Change-Id: Ib12b3644bbf732bac57713980b1fec14ee7783d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102757 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--sc/source/ui/inc/viewdata.hxx2
-rw-r--r--sc/source/ui/view/viewdata.cxx5
2 files changed, 1 insertions, 6 deletions
diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx
index fb60399c56b8..d923e7341461 100644
--- a/sc/source/ui/inc/viewdata.hxx
+++ b/sc/source/ui/inc/viewdata.hxx
@@ -322,7 +322,7 @@ private:
ScSplitPos eEditActivePart; // the part that was active when edit mode was started
ScFillMode nFillMode;
SvxAdjust eEditAdjust;
- bool bEditActive[4]; // Active?
+ bool bEditActive[4] = {}; // Active?
bool bActive:1; // Active Window ?
bool bIsRefMode:1; // Reference input
bool bDelMarkValid:1; // Only valid at SC_REFTYPE_FILL
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index efd90da3b03c..2a220afaf693 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -813,11 +813,6 @@ ScViewData::ScViewData( ScDocShell* pDocSh, ScTabViewShell* pViewSh ) :
static_cast<long>( ScGlobal::nStdRowHeight * PIXEL_PER_TWIPS * OLE_STD_CELLS_Y ) );
maTabData.emplace_back( new ScViewDataTable(nullptr) );
pThisTab = maTabData[nTabNo].get();
- for (sal_uInt16 j=0; j<4; j++)
- {
- pEditView[j] = nullptr;
- bEditActive[j] = false;
- }
nEditEndCol = nEditStartCol = nEditCol = 0;
nEditEndRow = nEditRow = 0;