summaryrefslogtreecommitdiffstats
path: root/src/opcua/client/qopcuarelativepathelement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opcua/client/qopcuarelativepathelement.cpp')
-rw-r--r--src/opcua/client/qopcuarelativepathelement.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/opcua/client/qopcuarelativepathelement.cpp b/src/opcua/client/qopcuarelativepathelement.cpp
index f2cb224..ce05830 100644
--- a/src/opcua/client/qopcuarelativepathelement.cpp
+++ b/src/opcua/client/qopcuarelativepathelement.cpp
@@ -71,14 +71,18 @@ QOpcUaRelativePathElement &QOpcUaRelativePathElement::operator=(const QOpcUaRela
}
/*!
- Returns \c true if this relative path element has the same value as \a rhs.
+ \fn bool QOpcUaRelativePathElement::operator==(const QOpcUaRelativePathElement &lhs,
+ const QOpcUaRelativePathElement &rhs)
+
+ Returns \c true if \a lhs has the same value as \a rhs.
*/
-bool QOpcUaRelativePathElement::operator==(const QOpcUaRelativePathElement &rhs) const
+bool comparesEqual(const QOpcUaRelativePathElement &lhs,
+ const QOpcUaRelativePathElement &rhs) noexcept
{
- return data->includeSubtypes == rhs.includeSubtypes() &&
- data->isInverse == rhs.isInverse() &&
- data->referenceTypeId == rhs.referenceTypeId() &&
- data->targetName == rhs.targetName();
+ return lhs.includeSubtypes() == rhs.includeSubtypes() &&
+ lhs.isInverse() == rhs.isInverse() &&
+ lhs.referenceTypeId() == rhs.referenceTypeId() &&
+ lhs.targetName() == rhs.targetName();
}
QOpcUaRelativePathElement::~QOpcUaRelativePathElement()