From 069d842392251d56167e08c005d51fa9ccc12147 Mon Sep 17 00:00:00 2001 From: Vicente Date: Mon, 6 Mar 2017 14:54:51 +1100 Subject: Use several C++11 features as examples so problems with these features are seen. Features used are move constructor, unique_ptr, deleted functions, enum class, lambda expression, and range for loop. --- cocoa/ScintillaCocoa.h | 1 + cocoa/ScintillaCocoa.mm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'cocoa') diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h index 60400cc77..128ddb9f6 100644 --- a/cocoa/ScintillaCocoa.h +++ b/cocoa/ScintillaCocoa.h @@ -22,6 +22,7 @@ #include #include #include +#include #include "ILexer.h" diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 1400796be..1caed47da 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1897,7 +1897,7 @@ void ScintillaCocoa::WillDraw(NSRect rect) pdoc->StyleToAdjustingLineDuration(posAfterMax); StartIdleStyling(posAfterMax < posAfterArea); NotifyUpdateUI(); - if (WrapLines(wsVisible)) { + if (WrapLines(WrapScope::wsVisible)) { // Wrap may have reduced number of lines so more lines may need to be styled const int posAfterAreaWrapped = PositionAfterArea(rcWillDraw); pdoc->EnsureStyledTo(posAfterAreaWrapped); -- cgit v1.2.3