mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
#4654 Fix QVariant comparisons with std::vector<T> data types
This commit is contained in:
1 parent
5d8feb1536
commit
89347022dd
2 files changed
+2
-3
No files matched your search
@@ -137,7 +137,6 @@ public:
|
||||
|
||||
static bool isEqual(const QVariant& variantValue, const QVariant& variantValue2)
|
||||
{
|
||||
assert(false); // Not sure this actually works JJS
|
||||
return variantValue == variantValue2;
|
||||
}
|
||||
};
|
||||
|
||||
+2
-2
@@ -86,7 +86,7 @@ public:
|
||||
|
||||
static bool isDataElementEqual(const QVariant& variantValue, const QVariant& variantValue2)
|
||||
{
|
||||
return PdmValueFieldSpecialization<T>::isEqual(variantValue, variantValue2);
|
||||
return PdmValueFieldSpecialization<std::list<T>>::isEqual(variantValue, variantValue2);
|
||||
}
|
||||
|
||||
/// Methods to get a list of options for a field, specialized for AppEnum
|
||||
@@ -123,7 +123,7 @@ public:
|
||||
|
||||
static bool isDataElementEqual(const QVariant& variantValue, const QVariant& variantValue2)
|
||||
{
|
||||
return PdmValueFieldSpecialization<T>::isEqual(variantValue, variantValue2);
|
||||
return PdmValueFieldSpecialization<std::vector<T>>::isEqual(variantValue, variantValue2);
|
||||
}
|
||||
|
||||
/// Methods to get a list of options for a field, specialized for AppEnum
|
||||
|
||||
Reference in new issue
Block a user