Skip to content

Commit

Permalink
drivers mysql updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jul 29, 2024
1 parent a9e6ef9 commit c49fe45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mysql/src/orm/drivers/mysql/mysqldriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ std::unique_ptr<SqlResult> MySqlDriver::createResult() const
{
/* We must use the const_cast<> as the weak_from_this() return type is controlled
by the current method const-nes, what means it's only our implementation detail
as we can't control this. Also, it's better to have the same const-nes as
in the QtSql. */
that we have to use the const_cast<> as we can't control this. Also, it's better
to have the same const-nes for the createResult() as defined in the QtSql. */
return std::make_unique<MySqlResult>(
const_cast<MySqlDriver &>(*this).weak_from_this()); // NOLINT(cppcoreguidelines-pro-type-const-cast)
}
Expand Down

0 comments on commit c49fe45

Please sign in to comment.