Skip to content

Commit

Permalink
unified = delete
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed May 25, 2022
1 parent b781b78 commit b45b436
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions include/orm/query/joinclause.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ namespace Orm::Query
/*! Copy constructor. */
inline JoinClause(const JoinClause &) = default;
/*! Deleted copy assignment operator (class constains reference and const). */
inline JoinClause &operator=(const JoinClause &) = delete;
JoinClause &operator=(const JoinClause &) = delete;

/*! Move constructor. */
inline JoinClause(JoinClause &&) = default;
/*! Deleted move assignment operator (class constains reference and const). */
inline JoinClause &operator=(JoinClause &&) = delete;
JoinClause &operator=(JoinClause &&) = delete;

/*! Virtual destructor. */
inline ~JoinClause() final = default;
Expand Down
4 changes: 2 additions & 2 deletions include/orm/query/querybuilder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ namespace Orm::Query
/*! Copy constructor. */
inline Builder(const Builder &) = default;
/*! Deleted copy assignment operator (class constains reference and const). */
inline Builder &operator=(const Builder &) = delete;
Builder &operator=(const Builder &) = delete;

/*! Move constructor. */
inline Builder(Builder &&) = default;
/*! Deleted move assignment operator (class constains reference and const). */
inline Builder &operator=(Builder &&) = delete;
Builder &operator=(Builder &&) = delete;

/* Retrieving results */
/*! Execute the query as a "select" statement. */
Expand Down
6 changes: 2 additions & 4 deletions include/orm/schema/columndefinitionreference.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ namespace Orm::SchemaNs
ColumnDefinitionReference &&) noexcept = default;

/*! Deleted copy assignment operator. */
ColumnDefinitionReference &
operator=(const ColumnDefinitionReference &) = delete;
ColumnDefinitionReference &operator=(const ColumnDefinitionReference &) = delete;
/*! Deleted move assignment operator. */
ColumnDefinitionReference &
operator=(ColumnDefinitionReference &&) noexcept = delete;
ColumnDefinitionReference &operator=(ColumnDefinitionReference &&) = delete;

/*! Place the column "after" another column (MySQL). */
ColumnReferenceType &after(const QString &column);
Expand Down
2 changes: 1 addition & 1 deletion include/orm/schema/foreignidcolumndefinitionreference.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace Orm::SchemaNs
operator=(const ForeignIdColumnDefinitionReference &) = delete;
/*! Deleted move assignment operator. */
ForeignIdColumnDefinitionReference &
operator=(ForeignIdColumnDefinitionReference &&) noexcept = delete;
operator=(ForeignIdColumnDefinitionReference &&) = delete;

/*! Create a foreign key constraint on this column referencing the "id" column
of the conventionally related table. */
Expand Down
2 changes: 1 addition & 1 deletion include/orm/schema/indexdefinitionreference.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace Orm::SchemaNs
operator=(const IndexDefinitionReference &) = delete;
/*! Deleted move assignment operator. */
IndexDefinitionReference &
operator=(IndexDefinitionReference &&) noexcept = delete;
operator=(IndexDefinitionReference &&) = delete;

/*! Return the reference to underlying index command. */
constexpr const IndexCommand &get() const noexcept;
Expand Down
2 changes: 1 addition & 1 deletion include/orm/tiny/concerns/hasattributes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ namespace Orm::Tiny::Concerns
/*! Move constructor. */
inline AttributeReference(AttributeReference &&) noexcept = default;
/*! Deleted move assignment operator. */
AttributeReference &operator=(AttributeReference &&) noexcept = delete;
AttributeReference &operator=(AttributeReference &&) = delete;

/*! Assign a value of the QVariant to the referenced attribute. */
inline const AttributeReference & // NOLINT(misc-unconventional-assign-operator)
Expand Down

0 comments on commit b45b436

Please sign in to comment.