summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-10-04 21:19:32 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-10-18 14:02:32 +0200
commitf1408d9966854cf55f15d59547f99d3aa2585fd4 (patch)
tree5d845cd07d63695ca0d633ed738f2f2bac84a440 /src/gui/image
parent9ceedd586321a2eeac4b63ee90d4e9726e143b78 (diff)
QColorSpace: port to QESDP
Replace the hand-rolled refcount management with QESDP. Since the class has a default-constructed / moved-from state where the d-pointer can be nullptr, add a in-class detach() that ensures a private object. Change-Id: Id81431fa60132dbc0eed45bb60b38d4f7d73833f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/gui/image')
-rw-r--r--src/gui/image/qpnghandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qpnghandler.cpp b/src/gui/image/qpnghandler.cpp
index 6c05e0a567..de913af320 100644
--- a/src/gui/image/qpnghandler.cpp
+++ b/src/gui/image/qpnghandler.cpp
@@ -592,7 +592,7 @@ bool QPngHandlerPrivate::readPngHeader()
if (!colorSpace.isValid()) {
qCWarning(lcImageIo) << "QPngHandler: Failed to parse ICC profile";
} else {
- QColorSpacePrivate *csD = QColorSpacePrivate::getWritable(colorSpace);
+ QColorSpacePrivate *csD = QColorSpacePrivate::get(colorSpace);
if (csD->description.isEmpty())
csD->description = QString::fromLatin1((const char *)name);
colorSpaceState = Icc;