aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/semantichighlighter.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2019-06-12 14:12:11 +0200
committerDavid Schulz <david.schulz@qt.io>2019-06-19 11:57:24 +0000
commitc76161e802026c902684841ea81d353b597875b4 (patch)
treeaaa0d723f49e26e8c81c95127217eaec88a91da2 /src/plugins/texteditor/semantichighlighter.cpp
parentcea75f3ac4359d9ea90fe682e20adca2619a6320 (diff)
TextEditor: make it obvious that formats are consumed by setExtraFormats
... by transforming the parameter to an r value and pass the argument by std::move. Change-Id: I6949ee6bbac7d8675fdbbcb62bb4f4c394bb395f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/texteditor/semantichighlighter.cpp')
-rw-r--r--src/plugins/texteditor/semantichighlighter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/semantichighlighter.cpp b/src/plugins/texteditor/semantichighlighter.cpp
index 9dded606ba..17cfc1374b 100644
--- a/src/plugins/texteditor/semantichighlighter.cpp
+++ b/src/plugins/texteditor/semantichighlighter.cpp
@@ -112,7 +112,7 @@ void SemanticHighlighter::incrementalApplyExtraAdditionalFormats(
if (nextBlockNumber != blockNumber)
break;
}
- highlighter->setExtraFormats(b, formats);
+ highlighter->setExtraFormats(b, std::move(formats));
b = b.next();
++currentBlockNumber;
}