diff options
author | Neil <nyamatongwe@gmail.com> | 2017-06-09 11:31:14 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-06-09 11:31:14 +1000 |
commit | 91e85ffa9fb176b9c87dac1a3849a99ab594d899 (patch) | |
tree | 7bcb7ea3f640821519ad77c6018df2b531176caa /lexers/LexCoffeeScript.cxx | |
parent | 454c44ddcd26843a1253757de333bc3c3c0cba8e (diff) | |
download | scintilla-mirror-91e85ffa9fb176b9c87dac1a3849a99ab594d899.tar.gz |
Use min and max from std instead of own version from platform.
Diffstat (limited to 'lexers/LexCoffeeScript.cxx')
-rw-r--r-- | lexers/LexCoffeeScript.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lexers/LexCoffeeScript.cxx b/lexers/LexCoffeeScript.cxx index 63ee172e2..b835c52ec 100644 --- a/lexers/LexCoffeeScript.cxx +++ b/lexers/LexCoffeeScript.cxx @@ -14,6 +14,8 @@ #include <assert.h> #include <ctype.h> +#include <algorithm> + #include "Platform.h" #include "ILexer.h" #include "Scintilla.h" @@ -427,7 +429,7 @@ static void FoldCoffeeScriptDoc(Sci_PositionU startPos, Sci_Position length, int } const int levelAfterComments = indentNext & SC_FOLDLEVELNUMBERMASK; - const int levelBeforeComments = Platform::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 |