forked from qt-creator/qt-creator
Clang: Use MessageEnvelop instead of QVariant
QVariant has unwanted dependencies so we provided our own simpler solution. We want to support move only types and calling the copy constructor as you move the value in and outside. This copying is adding unwanted overhead too. Change-Id: I2e27a7924868efe81e8b8ff3415499c9fa22c2bc Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -25,8 +25,6 @@
|
||||
|
||||
#include "highlightingchangedmessage.h"
|
||||
|
||||
#include "container_common.h"
|
||||
|
||||
#include <QDataStream>
|
||||
#include <QDebug>
|
||||
|
||||
@@ -83,13 +81,6 @@ bool operator==(const HighlightingChangedMessage &first, const HighlightingChang
|
||||
&& first.skippedPreprocessorRanges_ == second.skippedPreprocessorRanges_;
|
||||
}
|
||||
|
||||
bool operator<(const HighlightingChangedMessage &first, const HighlightingChangedMessage &second)
|
||||
{
|
||||
return first.file_ < second.file_
|
||||
&& compareContainer(first.highlightingMarks_, second.highlightingMarks_)
|
||||
&& compareContainer(first.skippedPreprocessorRanges_, second.skippedPreprocessorRanges_);
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug debug, const HighlightingChangedMessage &message)
|
||||
{
|
||||
debug.nospace() << "HighlightingChangedMessage("
|
||||
|
||||
Reference in New Issue
Block a user