diff options
author | Neil <nyamatongwe@gmail.com> | 2018-01-28 08:57:56 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-01-28 08:57:56 +1100 |
commit | 6141b5164e83cf1122027decd88829e735ba707d (patch) | |
tree | 06d935d1388453c4068996074c82bb2b65ab0dae /src/Document.cxx | |
parent | 9d748e03134e5c15dd8cb9e8887b80dca0312b09 (diff) | |
download | scintilla-mirror-6141b5164e83cf1122027decd88829e735ba707d.tar.gz |
Replace Sci::clamp with C++ standard std::clamp function.
std::clamp is from C++17.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index d2e8d7428..55ddc7588 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -560,7 +560,7 @@ void Document::GetHighlightDelimiters(HighlightDelimiter &highlightDelimiter, Sc } Sci::Position Document::ClampPositionIntoDocument(Sci::Position pos) const { - return Sci::clamp(pos, 0, static_cast<Sci::Position>(Length())); + return std::clamp(pos, static_cast<Sci::Position>(0), static_cast<Sci::Position>(Length())); } bool Document::IsCrLf(Sci::Position pos) const { |