From 5a72039e1a39c200b50f134e4917d216ea68fb48 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 16 Jul 2020 08:03:19 +1000 Subject: Add some const, constexpr. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 28fa89120..8e4d85902 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1545,7 +1545,7 @@ bool Editor::WrapLines(WrapScope ws) { } } else if (ws == WrapScope::wsIdle) { // Try to keep time taken by wrapping reasonable so interaction remains smooth. - const double secondsAllowed = 0.01; + constexpr double secondsAllowed = 0.01; const Sci::Line linesInAllowedTime = std::clamp( static_cast(secondsAllowed / durationWrapOneLine.Duration()), LinesOnScreen() + 50, 0x10000); -- cgit v1.2.3