diff options
| author | Zufu Liu <unknown> | 2024-12-03 08:51:54 +1100 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2024-12-03 08:51:54 +1100 |
| commit | d80d7ebf05c2b2a969707b9d9ba40b377fdf9f55 (patch) | |
| tree | d598f93d52481cd81705831e4b1ea0cf4057c6d5 /src | |
| parent | abec74401030826f15b2cdf9e281a95887c5e369 (diff) | |
| download | scintilla-mirror-d80d7ebf05c2b2a969707b9d9ba40b377fdf9f55.tar.gz | |
Feature [feature-requests:#1537]. Avoid holding onto Document without need.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Document.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index d30cb50cf..04e1ac9b7 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -2900,14 +2900,13 @@ namespace { */ class RESearchRange { public: - const Document *doc; int increment; Sci::Position startPos; Sci::Position endPos; Sci::Line lineRangeStart; Sci::Line lineRangeEnd; Sci::Line lineRangeBreak; - RESearchRange(const Document *doc_, Sci::Position minPos, Sci::Position maxPos) noexcept : doc(doc_) { + RESearchRange(const Document *doc, Sci::Position minPos, Sci::Position maxPos) noexcept { increment = (minPos <= maxPos) ? 1 : -1; // Range endpoints should not be inside DBCS characters or between a CR and LF, |
