From 90ce12b8ea4aa3464b108012f9f814cf822672a2 Mon Sep 17 00:00:00 2001 From: kudah Date: Mon, 13 May 2013 22:43:50 +0300 Subject: get rid of msvc warning --- lexers/LexHaskell.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lexers') diff --git a/lexers/LexHaskell.cxx b/lexers/LexHaskell.cxx index 7e677e4ff..38533d1b0 100644 --- a/lexers/LexHaskell.cxx +++ b/lexers/LexHaskell.cxx @@ -222,7 +222,7 @@ struct OptionSetHaskell : public OptionSet { }; class LexerHaskell : public ILexer { - const bool literate; + bool literate; int firstImportLine; WordList keywords; WordList ffi; @@ -285,7 +285,7 @@ class LexerHaskell : public ILexer { } }; - inline void skipMagicHash(StyleContext &sc, const HashCount hashes) { + inline void skipMagicHash(StyleContext &sc, const HashCount hashes) const { if (options.magicHash && sc.ch == '#') { sc.Forward(); if (hashes == twoHashes && sc.ch == '#') { @@ -298,7 +298,7 @@ class LexerHaskell : public ILexer { } } - bool LineContainsImport(const int line, Accessor &styler) { + bool LineContainsImport(const int line, Accessor &styler) const { if (options.foldImports) { int currentPos = styler.LineStart(line); int style = styler.StyleAt(currentPos); @@ -495,7 +495,7 @@ void SCI_METHOD LexerHaskell::Lex(unsigned int startPos, int length, int initSty sc.Forward(); if (sc.Match("\\begin{code}")) { - sc.Forward(strlen("\\begin{code}")); + sc.Forward(static_cast(strlen("\\begin{code}"))); bool correct = true; @@ -516,7 +516,7 @@ void SCI_METHOD LexerHaskell::Lex(unsigned int startPos, int length, int initSty && sc.Match("\\end{code}")) { sc.SetState(SCE_HA_LITERATE_CODEDELIM); - sc.Forward(strlen("\\end{code}")); + sc.Forward(static_cast(strlen("\\end{code}"))); while (!sc.atLineEnd && sc.More()) { sc.Forward(); -- cgit v1.2.3