From 4fee1c0972ef24589e6d872b5cf4ad91f192d8d8 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 16 Jul 2020 08:03:19 +1000 Subject: Backport: Add some const, constexpr. Backport of changeset 8407:dfaa642a6c22. --- 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 630a6f69e..878ecc24f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1541,7 +1541,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 = Sci::clamp( static_cast(secondsAllowed / durationWrapOneLine.Duration()), LinesOnScreen() + 50, static_cast(0x10000)); -- cgit v1.2.3