diff options
author | Neil <nyamatongwe@gmail.com> | 2025-04-08 09:50:37 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-04-08 09:50:37 +1000 |
commit | f80be880e89450ed81f15761d4b2aeee6fb5b0ab (patch) | |
tree | 8012123d1947abb565570ba4035533f09267ffbc | |
parent | 27d038b11a853785fd773756bdb02ae1a1bfae84 (diff) | |
download | scintilla-mirror-f80be880e89450ed81f15761d4b2aeee6fb5b0ab.tar.gz |
Fix COPY_INSTEAD_OF_MOVE performance warning from Coverity.
-rw-r--r-- | src/Document.cxx | 2 |
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); } |