From 2d3f2f707a4c4faf5255f3ae13634a82cef8c581 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 20 Jul 2015 10:04:16 +1000 Subject: Use Sci_Position when required to implement interfaces. --- lexlib/LexerNoExceptions.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lexlib/LexerNoExceptions.cxx') diff --git a/lexlib/LexerNoExceptions.cxx b/lexlib/LexerNoExceptions.cxx index 9ebae2af0..30c291bcb 100644 --- a/lexlib/LexerNoExceptions.cxx +++ b/lexlib/LexerNoExceptions.cxx @@ -28,7 +28,7 @@ using namespace Scintilla; #endif -int SCI_METHOD LexerNoExceptions::PropertySet(const char *key, const char *val) { +Sci_Position SCI_METHOD LexerNoExceptions::PropertySet(const char *key, const char *val) { try { return LexerBase::PropertySet(key, val); } catch (...) { @@ -37,7 +37,7 @@ int SCI_METHOD LexerNoExceptions::PropertySet(const char *key, const char *val) return -1; } -int SCI_METHOD LexerNoExceptions::WordListSet(int n, const char *wl) { +Sci_Position SCI_METHOD LexerNoExceptions::WordListSet(int n, const char *wl) { try { return LexerBase::WordListSet(n, wl); } catch (...) { @@ -46,7 +46,7 @@ int SCI_METHOD LexerNoExceptions::WordListSet(int n, const char *wl) { return -1; } -void SCI_METHOD LexerNoExceptions::Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { +void SCI_METHOD LexerNoExceptions::Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { try { Accessor astyler(pAccess, &props); Lexer(startPos, length, initStyle, pAccess, astyler); @@ -56,7 +56,7 @@ void SCI_METHOD LexerNoExceptions::Lex(unsigned int startPos, int length, int in pAccess->SetErrorStatus(SC_STATUS_FAILURE); } } -void SCI_METHOD LexerNoExceptions::Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { +void SCI_METHOD LexerNoExceptions::Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { try { Accessor astyler(pAccess, &props); Folder(startPos, length, initStyle, pAccess, astyler); -- cgit v1.2.3