mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-09 15:43:07 -06:00
Caf: Corrected the spesialization of field of vector and list equality compare, which is supposed to be pr. element
This commit is contained in:
parent
8d15fa1b84
commit
e1fa9aa9f3
@ -43,6 +43,7 @@
|
||||
|
||||
#include "cafPdmXmlVec3d.h"
|
||||
|
||||
Q_DECLARE_METATYPE(cvf::Vec3d);
|
||||
|
||||
namespace caf
|
||||
{
|
||||
|
@ -86,7 +86,7 @@ public:
|
||||
|
||||
static bool isEqual(const QVariant& variantValue, const QVariant& variantValue2)
|
||||
{
|
||||
return variantValue == variantValue2;
|
||||
return variantValue.value<T>() == variantValue2.value<T>();
|
||||
}
|
||||
|
||||
/// Methods to get a list of options for a field, specialized for AppEnum
|
||||
@ -123,7 +123,7 @@ public:
|
||||
|
||||
static bool isEqual(const QVariant& variantValue, const QVariant& variantValue2)
|
||||
{
|
||||
return variantValue == variantValue2;
|
||||
return variantValue.value<T>() == variantValue2.value<T>();
|
||||
}
|
||||
|
||||
/// Methods to get a list of options for a field, specialized for AppEnum
|
||||
|
Loading…
Reference in New Issue
Block a user