aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-16 16:10:13 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-16 16:10:13 +1000
commitd6ebb097f16792bb33e9cf094a3907fbca1ecfda (patch)
tree02e5435a8c50ee2c7b6585c5a4016ed94d2ce44c
parent811e4dd5158e45e2830d2d431a48a9a2297de226 (diff)
downloadscintilla-mirror-d6ebb097f16792bb33e9cf094a3907fbca1ecfda.tar.gz
Use standard library function.
-rw-r--r--lexers/LexPython.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lexers/LexPython.cxx b/lexers/LexPython.cxx
index 96f80c24a..f325ca360 100644
--- a/lexers/LexPython.cxx
+++ b/lexers/LexPython.cxx
@@ -15,6 +15,7 @@
#include <string>
#include <vector>
#include <map>
+#include <algorithm>
#include "ILexer.h"
#include "Scintilla.h"
@@ -929,7 +930,7 @@ void SCI_METHOD LexerPython::Fold(Sci_PositionU startPos, Sci_Position length, i
}
const int levelAfterComments = ((lineNext < docLines) ? indentNext & SC_FOLDLEVELNUMBERMASK : minCommentLevel);
- const int levelBeforeComments = Maximum(indentCurrentLevel, levelAfterComments);
+ const int levelBeforeComments = std::max(indentCurrentLevel, levelAfterComments);
// Now set all the indent levels on the lines we skipped
// Do this from end to start. Once we encounter one line