aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-03-31 08:15:54 +1100
committerNeil <nyamatongwe@gmail.com>2020-03-31 08:15:54 +1100
commit91ecae0a4522b34ced2ac667d4efca0bdb449827 (patch)
tree9c370e0f5421522920f2d6738118d930c1cff3b0 /src/Document.h
parent30748b957f1fbce6c79c7ac48e8b377cd6c7fd5a (diff)
downloadscintilla-mirror-91ecae0a4522b34ced2ac667d4efca0bdb449827.tar.gz
Pass argument as unique_ptr to show transfer of ownership. Add const and noexcept.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Document.h b/src/Document.h
index ea89877ec..c96fe9ee7 100644
--- a/src/Document.h
+++ b/src/Document.h
@@ -459,8 +459,8 @@ public:
void IncrementStyleClock() noexcept;
void SCI_METHOD DecorationSetCurrentIndicator(int indicator) override;
void SCI_METHOD DecorationFillRange(Sci_Position position, int value, Sci_Position fillLength) override;
- LexInterface *GetLexInterface() const;
- void SetLexInterface(LexInterface *pLexInterface);
+ LexInterface *GetLexInterface() const noexcept;
+ void SetLexInterface(std::unique_ptr<LexInterface> pLexInterface) noexcept;
int SCI_METHOD SetLineState(Sci_Position line, int state) override;
int SCI_METHOD GetLineState(Sci_Position line) const override;