aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2017-03-09 13:33:19 +0100
committerDominik Holland <dominik.holland@pelagicore.com>2017-03-09 12:52:37 +0000
commitfe8e40bb5176848c761a869a8ba181d006ffff19 (patch)
treee10dc4004bb99f1ede0d28f1b9e163c591bc6f26
parentc69eddbdfd062715b1ab51b28fb1278eb98751e0 (diff)
ivicore: Build fix
Also build with the new header clean check, which builds using -Wfloat-equal Change-Id: I4abe5f49f4ba49fcb7ab856bdb1b1d095a889805 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
-rw-r--r--src/ivicore/qivipropertyattribute.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ivicore/qivipropertyattribute.h b/src/ivicore/qivipropertyattribute.h
index 4e798db..c35cb49 100644
--- a/src/ivicore/qivipropertyattribute.h
+++ b/src/ivicore/qivipropertyattribute.h
@@ -114,6 +114,10 @@ public:
T maximumValue() const { return m_maximumValue; }
QVector<T> availableValues() const { return m_availableValues; }
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_CLANG("-Wfloat-equal")
+QT_WARNING_DISABLE_GCC("-Wfloat-equal")
+
bool operator==(const QIviPropertyAttribute &other) const
{
return (m_available == other.m_available) &&
@@ -123,6 +127,8 @@ public:
(m_availableValues == other.m_availableValues);
}
+QT_WARNING_POP
+
bool operator!=(const QIviPropertyAttribute &other) const
{
return !operator==(other);