From c5f7d797cda42ccf826b414e5d33b911e93ffe7b Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 17 May 2018 11:04:08 +1000 Subject: Use nullptr instead of 0 in headers as this diminishes the number of warnings. --- lexlib/CharacterSet.h | 2 +- lexlib/StyleContext.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lexlib') diff --git a/lexlib/CharacterSet.h b/lexlib/CharacterSet.h index 5965f38ca..7c2a1fe48 100644 --- a/lexlib/CharacterSet.h +++ b/lexlib/CharacterSet.h @@ -59,7 +59,7 @@ public: } ~CharacterSet() { delete []bset; - bset = 0; + bset = nullptr; size = 0; } CharacterSet &operator=(const CharacterSet &other) { diff --git a/lexlib/StyleContext.h b/lexlib/StyleContext.h index 1d40825f4..cc61dea3d 100644 --- a/lexlib/StyleContext.h +++ b/lexlib/StyleContext.h @@ -57,7 +57,7 @@ public: StyleContext(Sci_PositionU startPos, Sci_PositionU length, int initStyle, LexAccessor &styler_, char chMask='\377') : styler(styler_), - multiByteAccess(0), + multiByteAccess(nullptr), endPos(startPos + length), posRelative(0), currentPosLastRelative(0x7FFFFFFF), @@ -169,7 +169,7 @@ public: } Sci_Position diffRelative = n - offsetRelative; Sci_Position posNew = multiByteAccess->GetRelativePosition(posRelative, diffRelative); - const int chReturn = multiByteAccess->GetCharacterAndWidth(posNew, 0); + const int chReturn = multiByteAccess->GetCharacterAndWidth(posNew, nullptr); posRelative = posNew; currentPosLastRelative = currentPos; offsetRelative = n; -- cgit v1.2.3