mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -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:
@@ -43,6 +43,7 @@
|
|||||||
|
|
||||||
#include "cafPdmXmlVec3d.h"
|
#include "cafPdmXmlVec3d.h"
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(cvf::Vec3d);
|
||||||
|
|
||||||
namespace caf
|
namespace caf
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ public:
|
|||||||
|
|
||||||
static bool isEqual(const QVariant& variantValue, const QVariant& variantValue2)
|
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
|
/// 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)
|
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
|
/// Methods to get a list of options for a field, specialized for AppEnum
|
||||||
|
|||||||
Reference in New Issue
Block a user