aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 2c2d86de6..6b93a30af 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -2262,12 +2262,12 @@ void Document::LexerChanged() {
}
}
-LexInterface *Document::GetLexInterface() const {
+LexInterface *Document::GetLexInterface() const noexcept {
return pli.get();
}
-void Document::SetLexInterface(LexInterface *pLexInterface) {
- pli.reset(pLexInterface);
+void Document::SetLexInterface(std::unique_ptr<LexInterface> pLexInterface) noexcept {
+ pli = std::move(pLexInterface);
}
int SCI_METHOD Document::SetLineState(Sci_Position line, int state) {