diff options
| author | Vicente <unknown> | 2017-03-06 14:54:51 +1100 |
|---|---|---|
| committer | Vicente <unknown> | 2017-03-06 14:54:51 +1100 |
| commit | 069d842392251d56167e08c005d51fa9ccc12147 (patch) | |
| tree | 51d5396606bffade50d291781d5227cc404cd87d /cocoa | |
| parent | 41c0c0f7083c0ddde020cf847cddef7894f2ded4 (diff) | |
| download | scintilla-mirror-069d842392251d56167e08c005d51fa9ccc12147.tar.gz | |
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.
Diffstat (limited to 'cocoa')
| -rw-r--r-- | cocoa/ScintillaCocoa.h | 1 | ||||
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 2 |
2 files changed, 2 insertions, 1 deletions
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 <string> #include <vector> #include <map> +#include <memory> #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); |
