qt5base-lts/src
Volker Hilsheimer 3f72b0d5fc QSqlResult: remove bad API returning non-const reference
QSqlResult::boundValues is a const member function, but returned a non-
const reference to a QList<QVariant>. This is a bad and potentially
dangerous API, as callers can modify the list stored in QSqlResult.

Move that API into the removed_api translation unit, remove it from
Qt 6.6 on and replace it with two suitable overloads where the const
version returns a QVariantList by value, and the non-const overload
returns a mutable reference.

Driver implementations that used to call the const overload to get a
mutable reference are now calling the non-const overload instead
(those calls are all made in the non-const exec() or equivalent driver
implementations).

As a drive-by, replace "vector" with "list" in the documentation.

Pick-to: 6.6
Change-Id: I6e4fd8f5749b939cdb609bf5876735e9b30b2b5a
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2023-06-21 00:30:41 +02:00
..
3rdparty Update public suffix list 2023-06-16 07:07:19 +00:00
android Android: improve screen size and physical size calculation 2023-06-10 11:12:39 +03:00
assets Add Qt icon library for examples 2023-04-22 18:14:38 +03:00
concurrent QFuture: mention the work-stealing algorithm in the docs 2023-06-20 12:24:00 +02:00
corelib QStringView: size is encoded with code units not code points 2023-06-20 22:04:04 +00:00
dbus QDBus: Transform fallback interface names according to the spec 2023-06-20 19:53:47 +02:00
entrypoint src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
gui QPixmapCache: don't leak QString keys of evicted pixmap 2023-06-20 15:25:20 +02:00
network Schannel: Add support for proper listing of ciphers 2023-06-16 09:27:00 +02:00
opengl rhi: Make it a QPA-style private but semi-public API 2023-05-21 15:42:58 +02:00
openglwidgets Make QOpenGLWidget work with QT_WIDGETS_HIGHDPI_DOWNSCALE 2023-05-24 06:55:57 +00:00
platformsupport QXkbCommon: set Qt::KeypadModifier when keypad button is pressed 2023-04-20 06:14:58 +00:00
plugins iOS: Tear down all text interaction recognizers on focus object change 2023-06-20 19:54:40 +02:00
printsupport Fix GCC 13 warning about freeing the global static 2023-06-06 15:26:04 -07:00
sql QSqlResult: remove bad API returning non-const reference 2023-06-21 00:30:41 +02:00
testlib QtCore: Remove std::mutex and std::condition_variable fallbacks 2023-06-12 14:38:11 -07:00
tools Moc: fix narrowing conversion warnings with range-for loops 2023-06-20 06:53:52 +00:00
widgets QLineEdit: ignore key release events 2023-06-20 15:24:19 +02:00
xml Clarify module changes in Qt6 2023-05-09 22:36:06 +00:00
CMakeLists.txt Add Qt icon library for examples 2023-04-22 18:14:38 +03:00