aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 8f6806824..268755966 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -2648,7 +2648,7 @@ void Document::SetLexInterface(std::unique_ptr<LexInterface> pLexInterface) noex
void Document::SetViewState(void *view, ViewStateShared pVSS) {
if (pVSS) {
- viewData[view] = pVSS;
+ viewData[view] = std::move(pVSS);
} else {
viewData.erase(view);
}