From c49fe456f051f5cee3a0f595e8d8b78165949609 Mon Sep 17 00:00:00 2001 From: silverqx Date: Mon, 29 Jul 2024 14:48:58 +0200 Subject: [PATCH] drivers mysql updated comment --- drivers/mysql/src/orm/drivers/mysql/mysqldriver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }