From 4f759834d37c78874eb30d5f3010fe41062532ed Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 11 Feb 2018 11:02:42 +0100 Subject: cppcheck useInitializationList unique_ptr don't need explicit nullptr initialization, same goes for VclPtr in ImpEditEngine. Change-Id: Id8f3163c2719bee6ee2724cae98449d564be5535 Reviewed-on: https://gerrit.libreoffice.org/49559 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/editeng/impedit.cxx | 3 --- editeng/source/editeng/impedit2.cxx | 6 ------ 2 files changed, 9 deletions(-) (limited to 'editeng') diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index a7b0cfb1b272..5e4ce991659c 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -71,14 +71,11 @@ ImpEditView::ImpEditView( EditView* pView, EditEngine* pEng, vcl::Window* pWindo pEditView = pView; pEditEngine = pEng; pOutWin = pWindow; - pPointer = nullptr; - pBackgroundColor = nullptr; mpViewShell = nullptr; mpOtherShell = nullptr; nScrollDiffX = 0; nExtraCursorFlags = GetCursorFlags::NONE; nCursorBidiLevel = CURSOR_BIDILEVEL_DONTKNOW; - pCursor = nullptr; bReadOnly = false; bClickedInSelection = false; eSelectionMode = EESelectionMode::Std; diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index a72dfd647f3e..7f0aa10007f3 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -111,18 +111,12 @@ ImpEditEngine::ImpEditEngine( EditEngine* pEE, SfxItemPool* pItemPool ) : mbNbspRunNext(false) { pEditEngine = pEE; - pRefDev = nullptr; - pVirtDev = nullptr; pActiveView = nullptr; - pSpellInfo = nullptr; pConvInfo = nullptr; pTextObjectPool = nullptr; - mpIMEInfos = nullptr; pStylePool = nullptr; pUndoManager = nullptr; pUndoMarkSelection = nullptr; - pTextRanger = nullptr; - pCTLOptions = nullptr; nCurTextHeight = 0; nCurTextHeightNTP = 0; -- cgit