From 8898dd74337c8fb7ac76e157f9afee38ffbe1438 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 5 Apr 2020 16:04:05 -0400 Subject: Backport: Pass argument as unique_ptr to show transfer of ownership. Add const and noexcept. Backport of changeset 8106:f26e186e80a9. --- src/Document.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index f105e825a..efce835d4 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 pLexInterface) noexcept; int SCI_METHOD SetLineState(Sci_Position line, int state) override; int SCI_METHOD GetLineState(Sci_Position line) const override; -- cgit v1.2.3