c889ffed9f
There's no reason to treat QTextStream polymorphically: it has no virtual functions other than the dtor. So don't. Removing the vtable is BiC, so we can only do it come Qt 7, but let's warn already, and "deprecate" the virtual'ness (indirectly) by marking the class final as an opt-in. The extra macro beside the class name throws off syncqt, so add a #pragma qt_class. [ChangeLog][Deprecation Notice] Inheriting QTextStream is deprecated. QTextStream will no longer have a virtual destructor in Qt 7. If your code inherits QTextStream, port to a design that doesn't require a polymorphic QTextStream. You may define the macro QT_NO_INHERITABLE_TEXT_STREAM to mark QTextStream as final to assist you in checking for such code. This is the default if you're compiling with QT_DISABLE_DEPRECATED_UP_TO set to Qt 6.9. Fixes: QTBUG-111051 Change-Id: Ib32b8c0e49990d791cdc502bf40cb250f034404b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> |
||
---|---|---|
.github/workflows | ||
bin | ||
cmake | ||
coin | ||
config.tests | ||
dist | ||
doc | ||
examples | ||
lib | ||
libexec | ||
LICENSES | ||
mkspecs | ||
qmake | ||
src | ||
tests | ||
util | ||
.cmake.conf | ||
.gitattributes | ||
.gitignore | ||
.lgtm.yml | ||
.tag | ||
CMakeLists.txt | ||
conanfile.py | ||
config_help.txt | ||
configure | ||
configure.bat | ||
configure.cmake | ||
dependencies.yaml | ||
qt_cmdline.cmake | ||
sync.profile |