diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:25:48 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:53 +0100 |
commit | 01b49802c7cda7fd4d5ba71263cef7bc95234b89 (patch) | |
tree | b8d92f1c6abf5ac548d0bcb0c581ebfcffd8bfac /sw/source/core/text/inftxt.hxx | |
parent | 6cd7bf2043146a630925a2e49336f02c802f707a (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I01e11fa956a249974e77dce9deebe79311f098d0
Diffstat (limited to 'sw/source/core/text/inftxt.hxx')
-rw-r--r-- | sw/source/core/text/inftxt.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/core/text/inftxt.hxx b/sw/source/core/text/inftxt.hxx index 1eec0f6f5c8c..de1a8cd94f97 100644 --- a/sw/source/core/text/inftxt.hxx +++ b/sw/source/core/text/inftxt.hxx @@ -123,7 +123,7 @@ class SwTextInfo protected: SwTextInfo() - : m_pPara(0) + : m_pPara(nullptr) , m_nTextStart(0) {} @@ -187,7 +187,7 @@ protected: sal_uInt8 m_nDirection : 2; // writing direction: 0/90/180/270 degree protected: - void CtorInitTextSizeInfo( OutputDevice* pRenderContext, SwTextFrm *pFrm, SwFont *pFnt = 0, + void CtorInitTextSizeInfo( OutputDevice* pRenderContext, SwTextFrm *pFrm, SwFont *pFnt = nullptr, const sal_Int32 nIdx = 0, const sal_Int32 nLen = COMPLETE_STRING ); SwTextSizeInfo(); @@ -197,7 +197,7 @@ public: const sal_Int32 nIdx = 0, const sal_Int32 nLen = COMPLETE_STRING ); - SwTextSizeInfo( SwTextFrm *pTextFrm, SwFont *pTextFnt = 0, + SwTextSizeInfo( SwTextFrm *pTextFrm, SwFont *pTextFnt = nullptr, const sal_Int32 nIndex = 0, const sal_Int32 nLength = COMPLETE_STRING ); @@ -376,10 +376,10 @@ class SwTextPaintInfo : public SwTextSizeInfo protected: SwTextPaintInfo() - : pWrongList(0) - , pGrammarCheckList(0) - , pSmartTags(0) - , pSpaceAdd(0) + : pWrongList(nullptr) + , pGrammarCheckList(nullptr) + , pSmartTags(nullptr) + , pSpaceAdd(nullptr) #ifdef DBG_UTIL , pBrushItem(reinterpret_cast<SvxBrushItem*>(-1)) #else @@ -450,7 +450,7 @@ public: * is excluded (e.g. for background) **/ void CalcRect( const SwLinePortion& rPor, SwRect* pRect, - SwRect* pIntersect = 0, const bool bInsideBox = false ) const; + SwRect* pIntersect = nullptr, const bool bInsideBox = false ) const; inline SwTwips GetPaintOfst() const; inline void SetPaintOfst( const SwTwips nNew ); @@ -720,7 +720,7 @@ class SwFontSave SwAttrIter *pIter; public: SwFontSave( const SwTextSizeInfo &rInf, SwFont *pFnt, - SwAttrIter* pItr = NULL ); + SwAttrIter* pItr = nullptr ); ~SwFontSave(); }; @@ -740,7 +740,7 @@ inline sal_uInt16 SwTextSizeInfo::GetTextHeight() const inline SwPosSize SwTextSizeInfo::GetTextSize( const OUString &rText ) const { - return GetTextSize( m_pOut, 0, rText, 0, rText.getLength(), 0 ); + return GetTextSize( m_pOut, nullptr, rText, 0, rText.getLength(), 0 ); } inline SwPosSize SwTextSizeInfo::GetTextSize( const SwScriptInfo* pSI, |