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:
@@ -96,21 +96,6 @@ bool operator==(const HighlightingMarkContainer &first, const HighlightingMarkCo
|
||||
&& first.type_ == second.type_;
|
||||
}
|
||||
|
||||
bool operator<(const HighlightingMarkContainer &first, const HighlightingMarkContainer &second)
|
||||
{
|
||||
if (first.line() == second.line()) {
|
||||
if (first.column() == second.column()) {
|
||||
if (first.length() == second.length())
|
||||
return first.type() < second.type();
|
||||
return first.length() < second.length();
|
||||
}
|
||||
|
||||
return first.column() < second.column();
|
||||
}
|
||||
|
||||
return first.line() < second.line();
|
||||
}
|
||||
|
||||
#define RETURN_TEXT_FOR_CASE(enumValue) case HighlightingType::enumValue: return #enumValue
|
||||
static const char *highlightingTypeToCStringLiteral(HighlightingType type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user