Changeset View
Changeset View
Standalone View
Standalone View
src/plasmaquick/dialogshadows.cpp
Show First 20 Lines • Show All 446 Lines • ▼ Show 20 Line(s) | 446 | if (!m_isX11) { | |||
---|---|---|---|---|---|
447 | return; | 447 | return; | ||
448 | } | 448 | } | ||
449 | 449 | | |||
450 | auto *display = QX11Info::display(); | 450 | auto *display = QX11Info::display(); | ||
451 | if (!display) { | 451 | if (!display) { | ||
452 | return; | 452 | return; | ||
453 | } | 453 | } | ||
454 | 454 | | |||
455 | foreach (const QPixmap &pixmap, m_shadowPixmaps) { | 455 | for (const QPixmap &pixmap : qAsConst(m_shadowPixmaps)) { | ||
456 | if (!pixmap.isNull()) { | 456 | if (!pixmap.isNull()) { | ||
457 | XFreePixmap(display, reinterpret_cast<unsigned long>(createPixmap(pixmap))); | 457 | XFreePixmap(display, reinterpret_cast<unsigned long>(createPixmap(pixmap))); | ||
458 | } | 458 | } | ||
459 | } | 459 | } | ||
460 | 460 | | |||
461 | if (!m_emptyCornerPix.isNull()) { | 461 | if (!m_emptyCornerPix.isNull()) { | ||
462 | XFreePixmap(display, reinterpret_cast<unsigned long>(createPixmap(m_emptyCornerPix))); | 462 | XFreePixmap(display, reinterpret_cast<unsigned long>(createPixmap(m_emptyCornerPix))); | ||
463 | } | 463 | } | ||
▲ Show 20 Lines • Show All 232 Lines • Show Last 20 Lines |