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>
This commit is contained in:
David Schulz
2019-06-12 14:12:11 +02:00
parent cea75f3ac4
commit c76161e802
3 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ public:
void setDocument(QTextDocument *doc);
QTextDocument *document() const;
void setExtraFormats(const QTextBlock &block, QVector<QTextLayout::FormatRange> &formats);
void setExtraFormats(const QTextBlock &block, QVector<QTextLayout::FormatRange> &&formats);
void clearExtraFormats(const QTextBlock &block);
static QList<QColor> generateColors(int n, const QColor &background);