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:
2add935
)
use single variable assignment in getPatternFill() function
author
Ivailo Monev
<xakepa10@laimg.moc>
Wed, 17 Jun 2020 23:50:46 +0000
(23:50 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Wed, 17 Jun 2020 23:50:46 +0000
(23:50 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/painting/qpaintengine_x11.cpp
patch
|
blob
|
history
diff --git
a/src/gui/painting/qpaintengine_x11.cpp
b/src/gui/painting/qpaintengine_x11.cpp
index
6c4e3f7
..
f5546fc
100644
(file)
--- a/
src/gui/painting/qpaintengine_x11.cpp
+++ b/
src/gui/painting/qpaintengine_x11.cpp
@@
-258,9
+258,7
@@
static Picture getPatternFill(int screen, const QBrush &b)
return XNone;
XRenderColor color = qt_x11Data->preMultiply(b.color());
- XRenderColor bg_color;
-
- bg_color = qt_x11Data->preMultiply(QColor(0, 0, 0, 0));
+ XRenderColor bg_color = qt_x11Data->preMultiply(QColor(0, 0, 0, 0));
for (int i = 0; i < qt_x11Data->pattern_fill_count; ++i) {
if (qt_x11Data->pattern_fills[i].screen == screen