diff --git a/include/orm/tiny/tinybuilder.hpp b/include/orm/tiny/tinybuilder.hpp index 68f218267..d30e2bc97 100644 --- a/include/orm/tiny/tinybuilder.hpp +++ b/include/orm/tiny/tinybuilder.hpp @@ -42,7 +42,7 @@ namespace Orm::Tiny public: /*! Constructor. */ - Builder(const std::shared_ptr &query, Model &model); + Builder(std::shared_ptr query, Model &model); /*! Get the SQL representation of the query. */ inline QString toSql() const; @@ -214,9 +214,8 @@ namespace Orm::Tiny }; template - Builder::Builder(const std::shared_ptr &query, - Model &model) - : m_query(query) + Builder::Builder(std::shared_ptr query, Model &model) + : m_query(std::move(query)) , m_model(model) { m_query->from(m_model.getTable()); diff --git a/tom/include/tom/migrationrepository.hpp b/tom/include/tom/migrationrepository.hpp index 7f5aae5a2..35ca371c0 100644 --- a/tom/include/tom/migrationrepository.hpp +++ b/tom/include/tom/migrationrepository.hpp @@ -11,7 +11,7 @@ #include "tom/tomtypes.hpp" class QSqlQuery; -class QVariant; +class QVariant; // clazy:exclude=qt6-fwd-fixes TINYORM_BEGIN_COMMON_NAMESPACE