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/ViewStyle.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/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index c2d5effcd..d83505d40 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -458,7 +458,7 @@ void ViewStyle::CalcLargestMarkerHeight() { } int ViewStyle::GetFrameWidth() const { - return Sci::clamp(caretLineFrame, 1, lineHeight / 3); + return static_cast<int>(std::clamp(caretLineFrame, 1, lineHeight / 3)); } bool ViewStyle::IsLineFrameOpaque(bool caretActive, bool lineContainsCaret) const { |