diff --git a/include/orm/tiny/concerns/hasattributes.hpp b/include/orm/tiny/concerns/hasattributes.hpp index 433c8ead1..bca39abd2 100644 --- a/include/orm/tiny/concerns/hasattributes.hpp +++ b/include/orm/tiny/concerns/hasattributes.hpp @@ -1381,11 +1381,11 @@ namespace Orm::Tiny::Concerns /* Here we will grab all of the appended, calculated attributes to this model as these attributes are not really in the attributes vector, but are run when we need to serialize or JSON the model for convenience to the coder. */ - for (auto &&key : getSerializableAppends()) + for (const auto &key : getSerializableAppends()) #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) - attributes.emplaceBack(std::move(key), mutateAccessorAttribute(key)); + attributes.emplaceBack(key, mutateAccessorAttribute(key)); #else - attributes.append({std::move(key), mutateAccessorAttribute(key)}); + attributes.append({key, mutateAccessorAttribute(key)}); #endif return attributes;