From 7f8a8cfb32aecb70fe10ef26fe096f4092f7e673 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 20 May 2021 16:38:48 +1000 Subject: Prefer Sci::invalidPosition to INVALID_POSITION as Scintilla.h will eventually not be visible to most code. --- src/CellBuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/CellBuffer.cxx') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 6d760cdb5..84c2c27a7 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -1129,7 +1129,7 @@ void CellBuffer::BasicDeleteChars(Sci::Position position, Sci::Position deleteLe if (deleteLength == 0) return; - Sci::Line lineRecalculateStart = INVALID_POSITION; + Sci::Line lineRecalculateStart = Sci::invalidPosition; if ((position == 0) && (deleteLength == substance.Length())) { // If whole buffer is being deleted, faster to reinitialise lines data -- cgit v1.2.3