diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-09 19:42:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-10 08:48:08 +0200 |
commit | a6a5064c371017676f606a7a2823214146003572 (patch) | |
tree | 6b0f71af7a1fc636f113b87d2a11b6eb01e5bb5c /sc/source/ui/unoobj | |
parent | efe119aaa50e9f532b3fac1ef153469c80f24b80 (diff) |
loplugin:simplifyconstruct in sc
Change-Id: I1f67cef740eb946fea9097e6f62085d25b1e891b
Reviewed-on: https://gerrit.libreoffice.org/60225
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 14 | ||||
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/editsrc.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/fielduno.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/unoobj/funcuno.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/unoobj/textuno.cxx | 3 |
7 files changed, 1 insertions, 29 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 6b6985cdd5b4..bb877953a05c 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -1399,12 +1399,6 @@ static OUString lcl_GetInputString( ScDocument& rDoc, const ScAddress& rPos, boo ScCellRangesBase::ScCellRangesBase(ScDocShell* pDocSh, const ScRange& rR) : pPropSet(lcl_GetCellsPropertySet()), pDocShell( pDocSh ), - pValueListener( nullptr ), - pCurrentFlat( nullptr ), - pCurrentDeep( nullptr ), - pCurrentDataSet( nullptr ), - pNoDfltCurrentDataSet( nullptr ), - pMarkData( nullptr ), nObjectId( 0 ), bChartColAsHdr( false ), bChartRowAsHdr( false ), @@ -1436,12 +1430,6 @@ ScCellRangesBase::ScCellRangesBase(ScDocShell* pDocSh, const ScRange& rR) : ScCellRangesBase::ScCellRangesBase(ScDocShell* pDocSh, const ScRangeList& rR) : pPropSet(lcl_GetCellsPropertySet()), pDocShell( pDocSh ), - pValueListener( nullptr ), - pCurrentFlat( nullptr ), - pCurrentDeep( nullptr ), - pCurrentDataSet( nullptr ), - pNoDfltCurrentDataSet( nullptr ), - pMarkData( nullptr ), aRanges( rR ), nObjectId( 0 ), bChartColAsHdr( false ), @@ -8913,7 +8901,6 @@ sal_Bool SAL_CALL ScCellsObj::hasElements() ScCellsEnumeration::ScCellsEnumeration(ScDocShell* pDocSh, const ScRangeList& rR) : pDocShell( pDocSh ), aRanges( rR ), - pMark( nullptr ), bAtEnd( false ) { ScDocument& rDoc = pDocShell->GetDocument(); @@ -9156,7 +9143,6 @@ uno::Reference<container::XEnumeration> SAL_CALL ScCellFormatsObj::createEnumera ScCellFormatsEnumeration::ScCellFormatsEnumeration(ScDocShell* pDocSh, const ScRange& rRange) : pDocShell( pDocSh ), nTab( rRange.aStart.Tab() ), - pIter( nullptr ), bAtEnd( false ), bDirty( false ) { diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 0647d54c8d1e..74d79e7d7e04 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -458,7 +458,6 @@ public: Chart2Positioner(ScDocument* pDoc, const vector<ScTokenRef>& rRefTokens) : mrRefTokens(rRefTokens), - mpPositionMap(nullptr), meGlue(GLUETYPE_NA), mnStartCol(0), mnStartRow(0), @@ -2392,12 +2391,8 @@ ScChart2DataSequence::ScChart2DataSequence( ScDocument* pDoc, , m_nObjectId( 0 ) , m_pDocument( pDoc) , m_aTokens(std::move(rTokens)) - , m_pRangeIndices(nullptr) - , m_pExtRefListener(nullptr) , m_xDataProvider( xDP) , m_aPropSet(lcl_GetDataSequencePropertyMap()) - , m_pHiddenListener(nullptr) - , m_pValueListener( nullptr ) , m_bGotDataChangedHint(false) , m_bExtDataRebuildQueued(false) , mbTimeBased(false) diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 464e9b3fcf77..7918adcb5cc0 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -390,8 +390,6 @@ ScModelObj::ScModelObj( ScDocShell* pDocSh ) : SfxBaseModel( pDocSh ), aPropSet( lcl_GetDocOptPropertyMap() ), pDocShell( pDocSh ), - pPrintFuncCache( nullptr ), - pPrinterOptions( nullptr ), maChangesListeners( m_aMutex ) { // pDocShell may be NULL if this is the base of a ScDocOptionsObj diff --git a/sc/source/ui/unoobj/editsrc.cxx b/sc/source/ui/unoobj/editsrc.cxx index 86c44fc08b38..64e028070496 100644 --- a/sc/source/ui/unoobj/editsrc.cxx +++ b/sc/source/ui/unoobj/editsrc.cxx @@ -110,8 +110,6 @@ ScEditEngineDefaulter* ScCellEditSource::GetEditEngine() ScAnnotationEditSource::ScAnnotationEditSource(ScDocShell* pDocSh, const ScAddress& rP) : pDocShell( pDocSh ), aCellPos( rP ), - pEditEngine( nullptr ), - pForwarder( nullptr ), bDataValid( false ) { if (pDocShell) diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx index f6d33ce284aa..a1036dfa8dea 100644 --- a/sc/source/ui/unoobj/fielduno.cxx +++ b/sc/source/ui/unoobj/fielduno.cxx @@ -192,7 +192,6 @@ ScUnoEditEngine::ScUnoEditEngine(ScEditEngineDefaulter* pSource) , eMode(SC_UNO_COLLECT_NONE) , nFieldCount(0) , mnFieldType(text::textfield::Type::UNSPECIFIED) - , pFound(nullptr) , nFieldPar(0) , nFieldPos(0) , nFieldIndex(0) @@ -1066,7 +1065,7 @@ ScEditFieldObj::ScEditFieldObj( pPropSet(nullptr), mpEditSource(std::move(pEditSrc)), aSelection(rSel), - meType(eType), mpData(nullptr), mpContent(rContent), mnNumFormat(0), mbIsDate(false), mbIsFixed(false) + meType(eType), mpContent(rContent), mnNumFormat(0), mbIsDate(false), mbIsFixed(false) { switch (meType) { diff --git a/sc/source/ui/unoobj/funcuno.cxx b/sc/source/ui/unoobj/funcuno.cxx index 59de6fc42165..12d15581ed9f 100644 --- a/sc/source/ui/unoobj/funcuno.cxx +++ b/sc/source/ui/unoobj/funcuno.cxx @@ -166,7 +166,6 @@ static bool lcl_CopyData( ScDocument* pSrcDoc, const ScRange& rSrcRange, } ScFunctionAccess::ScFunctionAccess() : - pOptions( nullptr ), aPropertyMap( ScDocOptionsHelper::GetPropertyMap() ), mbArray( true ), // default according to behaviour of older Office versions mbValid( true ) diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx index 726ed85c508e..6f138bd2024e 100644 --- a/sc/source/ui/unoobj/textuno.cxx +++ b/sc/source/ui/unoobj/textuno.cxx @@ -863,9 +863,6 @@ std::unique_ptr<EditTextObject> ScEditEngineTextObj::CreateTextObject() ScCellTextData::ScCellTextData(ScDocShell* pDocSh, const ScAddress& rP) : pDocShell( pDocSh ), aCellPos( rP ), - pEditEngine( nullptr ), - pForwarder( nullptr ), - pOriginalSource( nullptr ), bDataValid( false ), bInUpdate( false ), bDirty( false ), |