aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-01-28 08:57:56 +1100
committerNeil <nyamatongwe@gmail.com>2018-01-28 08:57:56 +1100
commit6141b5164e83cf1122027decd88829e735ba707d (patch)
tree06d935d1388453c4068996074c82bb2b65ab0dae /src/ViewStyle.cxx
parent9d748e03134e5c15dd8cb9e8887b80dca0312b09 (diff)
downloadscintilla-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.cxx2
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 {