Skip to content

Commit

Permalink
fixed clang-tidy and clazy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jul 10, 2022
1 parent 265ed72 commit afc4630
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions include/orm/tiny/tinybuilder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace Orm::Tiny

public:
/*! Constructor. */
Builder(const std::shared_ptr<QueryBuilder> &query, Model &model);
Builder(std::shared_ptr<QueryBuilder> query, Model &model);

/*! Get the SQL representation of the query. */
inline QString toSql() const;
Expand Down Expand Up @@ -214,9 +214,8 @@ namespace Orm::Tiny
};

template<typename Model>
Builder<Model>::Builder(const std::shared_ptr<QueryBuilder> &query,
Model &model)
: m_query(query)
Builder<Model>::Builder(std::shared_ptr<QueryBuilder> query, Model &model)
: m_query(std::move(query))
, m_model(model)
{
m_query->from(m_model.getTable());
Expand Down
2 changes: 1 addition & 1 deletion tom/include/tom/migrationrepository.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "tom/tomtypes.hpp"

class QSqlQuery;
class QVariant;
class QVariant; // clazy:exclude=qt6-fwd-fixes

TINYORM_BEGIN_COMMON_NAMESPACE

Expand Down

0 comments on commit afc4630

Please sign in to comment.