OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c41f65b
)
avoid temporary in QX11PixmapData::fromImage()
author
Ivailo Monev
<xakepa10@gmail.com>
Fri, 28 Jan 2022 14:05:11 +0000
(16:05 +0200)
committer
Ivailo Monev
<xakepa10@gmail.com>
Fri, 28 Jan 2022 14:05:11 +0000
(16:05 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/image/qpixmap_x11.cpp
patch
|
blob
|
history
diff --git
a/src/gui/image/qpixmap_x11.cpp
b/src/gui/image/qpixmap_x11.cpp
index
ff0f7e6
..
9afdce4
100644
(file)
--- a/
src/gui/image/qpixmap_x11.cpp
+++ b/
src/gui/image/qpixmap_x11.cpp
@@
-325,8
+325,7
@@
void QX11PixmapData::fromImage(const QImage &img,
#endif
if (alphaCheck.hasAlpha()) {
- QBitmap m = QBitmap::fromImage(image.createAlphaMask(flags));
- setMask(m);
+ setMask(QBitmap::fromImage(image.createAlphaMask(flags)));
}
}