sc/source/ui/inc/viewdata.hxx | 2 +- sc/source/ui/view/viewdata.cxx | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-)
New commits: commit 9ecf3cec2bd83791d777bb95ab614c137bfbb45a Author: Mike Kaganski <[email protected]> AuthorDate: Wed Sep 16 09:59:10 2020 +0200 Commit: Mike Kaganski <[email protected]> CommitDate: Wed Sep 16 11:16:13 2020 +0200 Simplify initialization Change-Id: Ib12b3644bbf732bac57713980b1fec14ee7783d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102757 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> 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; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
