Kaydet (Commit) 4f759834 authored tarafından Jochen Nitschke's avatar Jochen Nitschke Kaydeden (comit) Noel Grandin

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/49559Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst e3546db3
......@@ -37,7 +37,6 @@ using namespace ::dbtools;
MacabRecord::MacabRecord()
{
size = 0;
fields = nullptr;
}
......
......@@ -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;
......
......@@ -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;
......
......@@ -178,8 +178,6 @@ bool SvcListHasLanguage(
SpellCheckerDispatcher::SpellCheckerDispatcher( LngSvcMgr &rLngSvcMgr ) :
m_rMgr (rLngSvcMgr)
{
m_pCache = nullptr;
m_pCharClass = nullptr;
}
......
......@@ -476,7 +476,6 @@ void IcnCursor_Impl::SetDeltas()
IcnGridMap_Impl::IcnGridMap_Impl(SvxIconChoiceCtrl_Impl* pView)
{
_pView = pView;
_pGridMap = nullptr;
_nGridCols = 0;
_nGridRows = 0;
}
......
......@@ -21,9 +21,9 @@ using namespace oox;
TrackChangesHandler::TrackChangesHandler( sal_Int32 nToken ) :
LoggedProperties("TrackChangesHandler")
LoggedProperties("TrackChangesHandler"),
m_pRedlineParams(std::make_shared<RedlineParams>())
{
m_pRedlineParams = std::make_shared<RedlineParams>( );
m_pRedlineParams->m_nToken = nToken;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment