From 109717c9a2a4d33f2210ed1fbf6d874ff04f32d3 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Mon, 30 Mar 2015 23:28:17 +0200 Subject: sw: prefix members of SwEditShell Change-Id: I8a06e0660767f23518952e22cca1b56c16d0bbd1 --- sw/inc/editsh.hxx | 8 ++++---- sw/source/core/bastyp/init.cxx | 2 +- sw/source/core/edit/autofmt.cxx | 8 ++++---- sw/source/core/edit/edws.cxx | 12 ++++++------ 4 files changed, 15 insertions(+), 15 deletions(-) (limited to 'sw') diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx index c617931309d7..3831545230b5 100644 --- a/sw/inc/editsh.hxx +++ b/sw/inc/editsh.hxx @@ -137,9 +137,9 @@ typedef boost::ptr_vector SwGetINetAttrs; #define CNT_HasGrf(USH) ((USH)&CNT_GRF) #define CNT_HasOLE(USH) ((USH)&CNT_OLE) -class SW_DLLPUBLIC SwEditShell: public SwCrsrShell +class SW_DLLPUBLIC SwEditShell : public SwCrsrShell { - static SvxSwAutoFmtFlags* pAutoFmtFlags; + static SvxSwAutoFmtFlags* s_pAutoFmtFlags; /// For the private methods DelRange and those of AutoCorrect. friend class SwAutoFormat; @@ -952,7 +952,7 @@ inline const sfx2::LinkManager& SwEditShell::GetLinkManager() const /// Class for automated call of Start- and EndAction(). class SwActContext { - SwEditShell *pSh; + SwEditShell & m_rShell; public: SwActContext(SwEditShell *pShell); ~SwActContext(); @@ -960,7 +960,7 @@ public: /// Class for automated call of Start- and EndCrsrMove(). class SwMvContext { - SwEditShell *pSh; + SwEditShell & m_rShell; public: SwMvContext(SwEditShell *pShell); ~SwMvContext(); diff --git a/sw/source/core/bastyp/init.cxx b/sw/source/core/bastyp/init.cxx index 6e39a13a3221..11a73ab6319b 100644 --- a/sw/source/core/bastyp/init.cxx +++ b/sw/source/core/bastyp/init.cxx @@ -763,7 +763,7 @@ void _FinitCore() delete SwSelPaintRects::s_pMapMode; delete SwFntObj::pPixMap; - delete SwEditShell::pAutoFmtFlags; + delete SwEditShell::s_pAutoFmtFlags; #if OSL_DEBUG_LEVEL > 0 // free defaults to prevent assertions diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx index 50972f170aa6..e9e115258e10 100644 --- a/sw/source/core/edit/autofmt.cxx +++ b/sw/source/core/edit/autofmt.cxx @@ -81,7 +81,7 @@ const int cnPosEnDash = 2, cnPosEmDash = 4; const sal_Unicode cStarSymbolEnDash = 0x2013; const sal_Unicode cStarSymbolEmDash = 0x2014; -SvxSwAutoFmtFlags* SwEditShell::pAutoFmtFlags = 0; +SvxSwAutoFmtFlags* SwEditShell::s_pAutoFmtFlags = nullptr; // Number of num-/bullet-paragraph templates. MAXLEVEL will soon be raised // to x, but not the number of templates. (Artifact from <= 4.0) @@ -2606,10 +2606,10 @@ void SwEditShell::AutoFmtBySplitNode() SvxSwAutoFmtFlags* SwEditShell::GetAutoFmtFlags() { - if (!pAutoFmtFlags) - pAutoFmtFlags = new SvxSwAutoFmtFlags; + if (!s_pAutoFmtFlags) + s_pAutoFmtFlags = new SvxSwAutoFmtFlags; - return pAutoFmtFlags; + return s_pAutoFmtFlags; } void SwEditShell::SetAutoFmtFlags(SvxSwAutoFmtFlags * pFlags) diff --git a/sw/source/core/edit/edws.cxx b/sw/source/core/edit/edws.cxx index 3700e2c7d823..8320085184ab 100644 --- a/sw/source/core/edit/edws.cxx +++ b/sw/source/core/edit/edws.cxx @@ -148,25 +148,25 @@ bool SwEditShell::HasOtherCnt() const // access control functions for file name handling SwActContext::SwActContext(SwEditShell *pShell) - : pSh(pShell) + : m_rShell(*pShell) { - pSh->StartAction(); + m_rShell.StartAction(); } SwActContext::~SwActContext() { - pSh->EndAction(); + m_rShell.EndAction(); } SwMvContext::SwMvContext(SwEditShell *pShell) - : pSh(pShell) + : m_rShell(*pShell) { - pSh->SttCrsrMove(); + m_rShell.SttCrsrMove(); } SwMvContext::~SwMvContext() { - pSh->EndCrsrMove(); + m_rShell.EndCrsrMove(); } SwFrmFmt *SwEditShell::GetTableFmt() // fastest test on a table -- cgit