diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-08 19:32:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-09 08:18:01 +0200 |
commit | 38a98c2999bb0710e383ab6b326f3aa5165ee035 (patch) | |
tree | 03a728287a707c734b12f0c35251dc2fe32d4f0c | |
parent | 278e66488135c8fa2714520d056573c64ea803cf (diff) |
loplugin:simplifyconstruct in helpcompiler..io
Change-Id: Ibdc1933b5d8d6be1fe42a7df93bd7e1c903bb39b
Reviewed-on: https://gerrit.libreoffice.org/60202
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | helpcompiler/inc/HelpLinker.hxx | 1 | ||||
-rw-r--r-- | hwpfilter/source/hbox.cxx | 1 | ||||
-rw-r--r-- | hwpfilter/source/hinfo.cxx | 1 | ||||
-rw-r--r-- | hwpfilter/source/hwpfile.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/characterclassification/cclass_unicode.cxx | 3 | ||||
-rw-r--r-- | i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/search/textsearch.cxx | 4 | ||||
-rw-r--r-- | idl/source/prj/database.cxx | 1 | ||||
-rw-r--r-- | idl/source/prj/globals.cxx | 3 | ||||
-rw-r--r-- | idlc/inc/astsequence.hxx | 1 | ||||
-rw-r--r-- | idlc/source/astexpression.cxx | 25 | ||||
-rw-r--r-- | io/source/acceptor/acceptor.cxx | 4 |
12 files changed, 2 insertions, 46 deletions
diff --git a/helpcompiler/inc/HelpLinker.hxx b/helpcompiler/inc/HelpLinker.hxx index 366c0a2bf29d..6b338e1eb1e4 100644 --- a/helpcompiler/inc/HelpLinker.hxx +++ b/helpcompiler/inc/HelpLinker.hxx @@ -56,7 +56,6 @@ public: HelpLinker() : bExtensionMode(false) - , m_pIndexerPreProcessor(nullptr) , m_bUseLangRoot(true) , m_bCreateIndex(true) {} diff --git a/hwpfilter/source/hbox.cxx b/hwpfilter/source/hbox.cxx index 7be2c61db81e..200f95b6e609 100644 --- a/hwpfilter/source/hbox.cxx +++ b/hwpfilter/source/hbox.cxx @@ -331,7 +331,6 @@ TxtBox::TxtBox() , type(0) , nCell(0) , protect(0) - , cell(nullptr) , m_pTable(nullptr) { reserved[0] = reserved[1] = 0; diff --git a/hwpfilter/source/hinfo.cxx b/hwpfilter/source/hinfo.cxx index d477d845c3b1..7ca6648d8221 100644 --- a/hwpfilter/source/hinfo.cxx +++ b/hwpfilter/source/hinfo.cxx @@ -56,7 +56,6 @@ HWPInfo::HWPInfo() , compressed(0) , reserved3(0) , info_block_len(0) - , info_block(nullptr) { back_info.isset = false; memset(reserved1, 0, sizeof(reserved1)); diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx index b1a4760d7644..223b4bb7a984 100644 --- a/hwpfilter/source/hwpfile.cxx +++ b/hwpfilter/source/hwpfile.cxx @@ -49,11 +49,9 @@ HWPFile::HWPFile() , linenumber(0) , info_block_len(0) , error_code(HWP_NoError) - , oledata(nullptr) , readdepth(0) , m_nCurrentPage(1) , m_nMaxSettedPage(0) - , hiodev(nullptr) , currenthyper(0) { SetCurrentDoc(this); diff --git a/i18npool/source/characterclassification/cclass_unicode.cxx b/i18npool/source/characterclassification/cclass_unicode.cxx index 6114dec332f9..6c7ff94d2811 100644 --- a/i18npool/source/characterclassification/cclass_unicode.cxx +++ b/i18npool/source/characterclassification/cclass_unicode.cxx @@ -41,9 +41,6 @@ namespace i18npool { cclass_Unicode::cclass_Unicode( const uno::Reference < XComponentContext >& rxContext ) : trans( new Transliteration_casemapping() ), m_xContext( rxContext ), - pTable( nullptr ), - pStart( nullptr ), - pCont( nullptr ), nStartTypes( 0 ), nContTypes( 0 ), eState( ssGetChar ), diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx index 7d4dc4542f9a..b36195569c18 100644 --- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx +++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx @@ -283,7 +283,7 @@ static const sal_Unicode table_PersianWord_decadeX[][8]={ }; -DefaultNumberingProvider::DefaultNumberingProvider( const Reference < XComponentContext >& rxContext ) : m_xContext(rxContext),translit(nullptr) +DefaultNumberingProvider::DefaultNumberingProvider( const Reference < XComponentContext >& rxContext ) : m_xContext(rxContext) { } diff --git a/i18npool/source/search/textsearch.cxx b/i18npool/source/search/textsearch.cxx index 495537d255c0..dc2f6a40529c 100644 --- a/i18npool/source/search/textsearch.cxx +++ b/i18npool/source/search/textsearch.cxx @@ -103,10 +103,6 @@ bool isSimpleRegexTrans( TransliterationFlags n ) TextSearch::TextSearch(const Reference < XComponentContext > & rxContext) : m_xContext( rxContext ) - , pJumpTable( nullptr ) - , pJumpTable2( nullptr ) - , pRegexMatcher( nullptr ) - , pWLD( nullptr ) { SearchOptions2 aOpt; aOpt.AlgorithmType2 = SearchAlgorithms2::ABSOLUTE; diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx index a7c3087a606b..e6521bdbf37b 100644 --- a/idl/source/prj/database.cxx +++ b/idl/source/prj/database.cxx @@ -46,7 +46,6 @@ SvIdlDataBase::SvIdlDataBase( const SvCommand& rCmd ) : bExport( false ) , nUniqueId( 0 ) , nVerbosity( rCmd.nVerbosity ) - , pIdTable( nullptr ) { sSlotMapFile = rCmd.aSlotMapFile; } diff --git a/idl/source/prj/globals.cxx b/idl/source/prj/globals.cxx index f57445b56828..a2375a845edf 100644 --- a/idl/source/prj/globals.cxx +++ b/idl/source/prj/globals.cxx @@ -34,9 +34,6 @@ IdlDll & GetIdlApp() } IdlDll::IdlDll() - : pHashTable( nullptr ) - , pGlobalNames( nullptr ) - {} IdlDll::~IdlDll() diff --git a/idlc/inc/astsequence.hxx b/idlc/inc/astsequence.hxx index 1a7a2073f763..5daedf1476d6 100644 --- a/idlc/inc/astsequence.hxx +++ b/idlc/inc/astsequence.hxx @@ -27,7 +27,6 @@ public: AstSequence(AstType const * pMemberType, AstScope* pScope) : AstType(NT_sequence, OString("[]")+pMemberType->getScopedName(), pScope) , m_pMemberType(pMemberType) - , m_pRelativName(nullptr) {} AstType const * getMemberType() const diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx index 721fbc9e430a..67277376832b 100644 --- a/idlc/source/astexpression.cxx +++ b/idlc/source/astexpression.cxx @@ -34,8 +34,6 @@ AstExpression::AstExpression(ExprComb c, AstExpression *pExpr1, AstExpression *p : m_combOperator(c) , m_subExpr1(pExpr1) , m_subExpr2(pExpr2) - , m_exprValue(nullptr) - , m_pSymbolicName(nullptr) { fillDefinitionDetails(); @@ -43,10 +41,6 @@ AstExpression::AstExpression(ExprComb c, AstExpression *pExpr1, AstExpression *p AstExpression::AstExpression(sal_Int32 l) : m_combOperator(ExprComb::NONE) - , m_subExpr1(nullptr) - , m_subExpr2(nullptr) - , m_exprValue(nullptr) - , m_pSymbolicName(nullptr) { fillDefinitionDetails(); @@ -57,10 +51,6 @@ AstExpression::AstExpression(sal_Int32 l) AstExpression::AstExpression(sal_Int32 l, ExprType et) : m_combOperator(ExprComb::NONE) - , m_subExpr1(nullptr) - , m_subExpr2(nullptr) - , m_exprValue(nullptr) - , m_pSymbolicName(nullptr) { fillDefinitionDetails(); @@ -71,10 +61,6 @@ AstExpression::AstExpression(sal_Int32 l, ExprType et) AstExpression::AstExpression(sal_Int64 h) : m_combOperator(ExprComb::NONE) - , m_subExpr1(nullptr) - , m_subExpr2(nullptr) - , m_exprValue(nullptr) - , m_pSymbolicName(nullptr) { fillDefinitionDetails(); @@ -85,10 +71,6 @@ AstExpression::AstExpression(sal_Int64 h) AstExpression::AstExpression(sal_uInt64 uh) : m_combOperator(ExprComb::NONE) - , m_subExpr1(nullptr) - , m_subExpr2(nullptr) - , m_exprValue(nullptr) - , m_pSymbolicName(nullptr) { fillDefinitionDetails(); @@ -99,10 +81,6 @@ AstExpression::AstExpression(sal_uInt64 uh) AstExpression::AstExpression(double d) : m_combOperator(ExprComb::NONE) - , m_subExpr1(nullptr) - , m_subExpr2(nullptr) - , m_exprValue(nullptr) - , m_pSymbolicName(nullptr) { fillDefinitionDetails(); @@ -113,9 +91,6 @@ AstExpression::AstExpression(double d) AstExpression::AstExpression(OString* scopedName) : m_combOperator(ExprComb::Symbol) - , m_subExpr1(nullptr) - , m_subExpr2(nullptr) - , m_exprValue(nullptr) , m_pSymbolicName(scopedName) { fillDefinitionDetails(); diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx index c9449f6eb146..2f518a248053 100644 --- a/io/source/acceptor/acceptor.cxx +++ b/io/source/acceptor/acceptor.cxx @@ -79,9 +79,7 @@ namespace io_acceptor OAcceptor::OAcceptor( const Reference< XComponentContext > & xCtx ) - : m_pPipe( nullptr ) - , m_pSocket( nullptr ) - , m_bInAccept( false ) + : m_bInAccept( false ) , _xSMgr( xCtx->getServiceManager() ) , _xCtx( xCtx ) {} |