diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-02 09:01:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-02 11:31:27 +0100 |
commit | ae63347262401cbb7010fd2939afdae90ee7b102 (patch) | |
tree | 78760d0ca50f34341b99abbb2bdcc0601cc683c6 /sc | |
parent | 668b03284c4b0df56d5a000cc38dd1144ec33bbe (diff) |
use initializer list
Change-Id: Ida6d710ceb4722029c9d0e07df47e621dd4a4053
Reviewed-on: https://gerrit.libreoffice.org/84192
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/markdata.hxx | 18 | ||||
-rw-r--r-- | sc/source/core/data/markdata.cxx | 10 |
2 files changed, 14 insertions, 14 deletions
diff --git a/sc/inc/markdata.hxx b/sc/inc/markdata.hxx index 5929586036d4..52fed46bb07a 100644 --- a/sc/inc/markdata.hxx +++ b/sc/inc/markdata.hxx @@ -50,17 +50,17 @@ private: ScRange aMarkRange; // area ScRange aMultiRange; // maximum area altogether ScMultiSel aMultiSel; // multi selection - bool bMarked:1; // rectangle marked - bool bMultiMarked:1; - - bool bMarking:1; // area is being marked -> no MarkToMulti - bool bMarkIsNeg:1; // cancel if multi selection - ScRangeList aTopEnvelope; // list of ranges in the top envelope of the multi selection - ScRangeList aBottomEnvelope; // list of ranges in the bottom envelope of the multi selection - ScRangeList aLeftEnvelope; // list of ranges in the left envelope of the multi selection - ScRangeList aRightEnvelope; // list of ranges in the right envelope of the multi selection + ScRangeList aTopEnvelope; // list of ranges in the top envelope of the multi selection + ScRangeList aBottomEnvelope; // list of ranges in the bottom envelope of the multi selection + ScRangeList aLeftEnvelope; // list of ranges in the left envelope of the multi selection + ScRangeList aRightEnvelope; // list of ranges in the right envelope of the multi selection SCROW mnMaxRow; SCCOL mnMaxCol; + bool bMarked:1; // rectangle marked + bool bMultiMarked:1; + + bool bMarking:1; // area is being marked -> no MarkToMulti + bool bMarkIsNeg:1; // cancel if multi selection public: ScMarkData(SCROW nMaxRow, SCCOL nMaxCol); diff --git a/sc/source/core/data/markdata.cxx b/sc/source/core/data/markdata.cxx index 469e169a9c03..047fe7002ff2 100644 --- a/sc/source/core/data/markdata.cxx +++ b/sc/source/core/data/markdata.cxx @@ -51,12 +51,12 @@ ScMarkData::ScMarkData(const ScMarkData& rData) : aLeftEnvelope( rData.aLeftEnvelope ), aRightEnvelope( rData.aRightEnvelope ), mnMaxRow( rData.mnMaxRow ), - mnMaxCol( rData.mnMaxCol ) + mnMaxCol( rData.mnMaxCol ), + bMarked( rData.bMarked ), + bMultiMarked( rData.bMultiMarked ), + bMarking( rData.bMarking ), + bMarkIsNeg( rData.bMarkIsNeg ) { - bMarked = rData.bMarked; - bMultiMarked = rData.bMultiMarked; - bMarking = rData.bMarking; - bMarkIsNeg = rData.bMarkIsNeg; } ScMarkData& ScMarkData::operator=(const ScMarkData& rData) |