diff --git a/include/orm/tiny/concerns/hasattributes.hpp b/include/orm/tiny/concerns/hasattributes.hpp index 2bd8ced06..00e5d2709 100644 --- a/include/orm/tiny/concerns/hasattributes.hpp +++ b/include/orm/tiny/concerns/hasattributes.hpp @@ -545,7 +545,7 @@ namespace Orm::Tiny::Concerns inline static void serializeDateOrDateTimeForAccessors(QVariant &value); /*! Convert a AttributeItem QVector to the std::unordered_map with caching. */ - ModelAttributes + const ModelAttributes & convertVectorToModelAttributes(const QVector &attributes) const; /* Others */ @@ -2662,7 +2662,7 @@ namespace Orm::Tiny::Concerns } template - ModelAttributes + const ModelAttributes & HasAttributes::convertVectorToModelAttributes( const QVector &attributes) const {