diff --git a/drivers/mysql/src/orm/drivers/mysql/mysqldriver.cpp b/drivers/mysql/src/orm/drivers/mysql/mysqldriver.cpp index c7b38720c..0b51ae3fb 100644 --- a/drivers/mysql/src/orm/drivers/mysql/mysqldriver.cpp +++ b/drivers/mysql/src/orm/drivers/mysql/mysqldriver.cpp @@ -225,8 +225,8 @@ std::unique_ptr 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( const_cast(*this).weak_from_this()); // NOLINT(cppcoreguidelines-pro-type-const-cast) }