diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-17 11:04:08 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-17 11:04:08 +1000 |
commit | a3ac8760d2f9fd6aad9cee595df34a81909be0f0 (patch) | |
tree | 0b4fbab5616e4884b465acc9dfe43cc0649f74e2 /lexlib/StyleContext.h | |
parent | da7a7a8065eca0f848434652530482bde6b2030e (diff) | |
download | scintilla-mirror-a3ac8760d2f9fd6aad9cee595df34a81909be0f0.tar.gz |
Backport: Use nullptr instead of 0 in headers as this diminishes the number of warnings.
Backport of changeset 6957:06ab85d42c89.
Diffstat (limited to 'lexlib/StyleContext.h')
-rw-r--r-- | lexlib/StyleContext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlib/StyleContext.h b/lexlib/StyleContext.h index cdb3aa91f..6e457dd59 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; |