no need to double std::move

This commit is contained in:
proddy
2020-08-26 16:07:12 +02:00
parent e9a93cb29c
commit b1e094293f

View File

@@ -57,7 +57,7 @@ struct MqttMessage {
MqttMessage(const uint8_t operation, const std::string & topic, const std::string && payload, bool retain)
: operation(operation)
, topic(topic)
, payload(std::move(payload))
, payload(payload)
, retain(retain) {
}
};