summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintdevice.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-10-21 23:29:41 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-10-23 09:33:29 +0200
commit47d2f3cfe836be897a737d434140b4be03e9320f (patch)
tree2f7cbaab5e153225e12c903be3f62c862e15d900 /src/gui/painting/qpaintdevice.cpp
parente356ab2c32248838f70fce38b35294a151a7e278 (diff)
QPaintDevice: Remove reserved without reservations
It was not during all of Qt 5, and nobody found a use for it when transitioning to Qt 6. It's probably safe to assume that we will not need it during Qt 6's lifetime either. This changes shrinks QPaintDevice to 16 bytes (on 64bit systems), and its child classes like QImage to 24 bytes, meaning that they fit into QVariant's SSO buffer. Change-Id: Ic3b020ad43afe45c76ca0c4056a440345a4e139e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/gui/painting/qpaintdevice.cpp')
-rw-r--r--src/gui/painting/qpaintdevice.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintdevice.cpp b/src/gui/painting/qpaintdevice.cpp
index 4afb89b52e..07991f2d71 100644
--- a/src/gui/painting/qpaintdevice.cpp
+++ b/src/gui/painting/qpaintdevice.cpp
@@ -43,7 +43,6 @@ QT_BEGIN_NAMESPACE
QPaintDevice::QPaintDevice() noexcept
{
- reserved = nullptr;
painters = 0;
}