diff options
author | Neil <nyamatongwe@gmail.com> | 2014-06-22 13:44:46 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-06-22 13:44:46 +1000 |
commit | a0ebebe503affd3447a29c1253579f392cc45132 (patch) | |
tree | 4110d4750ad2ba7e8c9e173ee049af35bdb40709 /src/PositionCache.h | |
parent | ee07f2adf11213314cdb76b04f1577d01692eab5 (diff) | |
download | scintilla-mirror-a0ebebe503affd3447a29c1253579f392cc45132.tar.gz |
Stop storing a pointer to the selection on LineLayout objects where it may have
a lifetime that is too long. Instead provide it as an argument to BreakFinder
where it is only needed during intialisation.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r-- | src/PositionCache.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h index e26b4b273..64ccfda34 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -34,7 +34,6 @@ public: enum validLevel { llInvalid, llCheckTextAndStyle, llPositions, llLines } validity; int xHighlightGuide; bool highlightColumn; - Selection *psel; bool containsCaret; int edgeColumn; char *chars; @@ -170,7 +169,7 @@ public: enum { lengthStartSubdivision = 300 }; // Try to make each subdivided run lengthEachSubdivision or shorter. enum { lengthEachSubdivision = 100 }; - BreakFinder(const LineLayout *ll_, int lineStart_, int lineEnd_, int posLineStart_, + BreakFinder(const LineLayout *ll_, const Selection *psel, int lineStart_, int lineEnd_, int posLineStart_, int xStart, bool breakForSelection, const Document *pdoc_, const SpecialRepresentations *preprs_); ~BreakFinder(); TextSegment Next(); |