forked from qt-creator/qt-creator
Fix build with Qt dev (5.2)
QVariant now has an operator< that is ambiguous with this one. (since commit 7ed15da3c1b9e2bb26f414a10bfc6e6d79d7cc7b in qtbase) Change-Id: Idf38afe85cec966df1885aa2da0f37fbb3eeccf6 Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -109,6 +109,7 @@ bool operator ==(const InformationContainer &first, const InformationContainer &
|
||||
&& first.m_thirdInformation == second.m_thirdInformation;
|
||||
}
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0)
|
||||
static bool operator <(const QVariant &first, const QVariant &second)
|
||||
{
|
||||
if (first.userType() == second.userType()) {
|
||||
@@ -118,6 +119,7 @@ static bool operator <(const QVariant &first, const QVariant &second)
|
||||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool operator <(const InformationContainer &first, const InformationContainer &second)
|
||||
{
|
||||
|
Reference in New Issue
Block a user