diff options
| author | Stephan T. Lavavej <unknown> | 2026-03-07 08:42:24 +1100 |
|---|---|---|
| committer | Stephan T. Lavavej <unknown> | 2026-03-07 08:42:24 +1100 |
| commit | 1244953d437f8d0e4adc89fe4e887189961f9841 (patch) | |
| tree | cffba16b111cef8b9612ff70d5d06dbcc3473e4d | |
| parent | 3e08cdd477397df9fd3149e8aea02734427807ba (diff) | |
| download | scintilla-mirror-1244953d437f8d0e4adc89fe4e887189961f9841.tar.gz | |
Improve compatibility with std::regex implementations.
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/17816
| -rw-r--r-- | doc/ScintillaHistory.html | 2 | ||||
| -rw-r--r-- | src/Document.cxx | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 26333e1be..c1a77ed67 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -593,6 +593,8 @@ <td>Sven Ritter</td> <td>Stefan Löffler</td> <td>Nathaniel Braun</td> + </tr><tr> + <td>Stephan T. Lavavej</td> </tr> </table> <h2 id="Releases">Releases</h2> diff --git a/src/Document.cxx b/src/Document.cxx index 458c1e93f..4fb266730 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -3141,7 +3141,9 @@ public: const Document *doc; Sci::Position position; - explicit ByteIterator(const Document *doc_=nullptr, Sci::Position position_=0) noexcept : + ByteIterator() noexcept : + ByteIterator(nullptr) {} + explicit ByteIterator(const Document *doc_, Sci::Position position_=0) noexcept : doc(doc_), position(position_) { } char operator*() const noexcept { @@ -3206,7 +3208,9 @@ public: using pointer = wchar_t*; using reference = wchar_t&; - explicit UTF8Iterator(const Document *doc_=nullptr, Sci::Position position_=0) noexcept : + UTF8Iterator() noexcept : + UTF8Iterator(nullptr) {} + explicit UTF8Iterator(const Document *doc_, Sci::Position position_=0) noexcept : doc(doc_), position(position_) { if (doc) { ReadCharacter(); @@ -3295,7 +3299,9 @@ public: using pointer = wchar_t*; using reference = wchar_t&; - explicit UTF8Iterator(const Document *doc_=nullptr, Sci::Position position_=0) noexcept : + UTF8Iterator() noexcept : + UTF8Iterator(nullptr) {} + explicit UTF8Iterator(const Document *doc_, Sci::Position position_=0) noexcept : doc(doc_), position(position_) { } wchar_t operator*() const noexcept { |
