summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@qt.io>2024-03-01 19:13:20 +0200
committerJuha Vuolle <juha.vuolle@qt.io>2024-03-01 19:56:27 +0200
commit087f69d4bd9a504540669f31a8b5d1114f1619d6 (patch)
treecfd38a890aa79d6556f0f8eb3a0aac4131db54bb
parent1ecd5db64f9f4d0d5a57808934cde319625062b1 (diff)
Name QOpcUaStructureField SMF parameter to 'other'
For consistency, a prevailing convention. Found in API-review. Pick-to: 6.7 Change-Id: I17b6070dba36e487db8ade3f9425591a43e879fd Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
-rw-r--r--src/opcua/client/qopcuastructurefield.cpp8
-rw-r--r--src/opcua/client/qopcuastructurefield.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/opcua/client/qopcuastructurefield.cpp b/src/opcua/client/qopcuastructurefield.cpp
index 2491ca2..62910de 100644
--- a/src/opcua/client/qopcuastructurefield.cpp
+++ b/src/opcua/client/qopcuastructurefield.cpp
@@ -51,12 +51,12 @@ QOpcUaStructureField::QOpcUaStructureField(const QOpcUaStructureField &other)
}
/*!
- Sets the values from \a rhs in this structure field.
+ Sets the values from \a other in this structure field.
*/
-QOpcUaStructureField &QOpcUaStructureField::operator=(const QOpcUaStructureField &rhs)
+QOpcUaStructureField &QOpcUaStructureField::operator=(const QOpcUaStructureField &other)
{
- if (this != &rhs)
- data.operator=(rhs.data);
+ if (this != &other)
+ data.operator=(other.data);
return *this;
}
diff --git a/src/opcua/client/qopcuastructurefield.h b/src/opcua/client/qopcuastructurefield.h
index fcab68a..58a7f71 100644
--- a/src/opcua/client/qopcuastructurefield.h
+++ b/src/opcua/client/qopcuastructurefield.h
@@ -26,7 +26,7 @@ public:
{ data.swap(other.data); }
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QOpcUaStructureField)
QOpcUaStructureField(QOpcUaStructureField &&other) noexcept = default;
- Q_OPCUA_EXPORT QOpcUaStructureField &operator=(const QOpcUaStructureField &rhs);
+ Q_OPCUA_EXPORT QOpcUaStructureField &operator=(const QOpcUaStructureField &other);
Q_OPCUA_EXPORT operator QVariant() const;
Q_OPCUA_EXPORT ~QOpcUaStructureField();