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 /src/LineMarker.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 'src/LineMarker.cxx')
-rw-r--r-- | src/LineMarker.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index d80a3c78c..5f8243ff8 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -11,6 +11,7 @@ #include <stdexcept> #include <vector> #include <map> +#include <algorithm> #include <memory> #include "Platform.h" @@ -117,7 +118,7 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac PRectangle rc = rcWhole; rc.top++; rc.bottom--; - int minDim = Platform::Minimum(static_cast<int>(rc.Width()), static_cast<int>(rc.Height())); + int minDim = std::min(static_cast<int>(rc.Width()), static_cast<int>(rc.Height())); minDim--; // Ensure does not go beyond edge int centreX = static_cast<int>(floor((rc.right + rc.left) / 2.0)); const int centreY = static_cast<int>(floor((rc.bottom + rc.top) / 2.0)); |