Changeset View
Changeset View
Standalone View
Standalone View
src/plasmaquick/dialogshadows.cpp
Show First 20 Lines • Show All 455 Lines • ▼ Show 20 Line(s) | 455 | if (!m_isX11) { | |||
---|---|---|---|---|---|
456 | return; | 456 | return; | ||
457 | } | 457 | } | ||
458 | 458 | | |||
459 | auto *display = QX11Info::display(); | 459 | auto *display = QX11Info::display(); | ||
460 | if (!display) { | 460 | if (!display) { | ||
461 | return; | 461 | return; | ||
462 | } | 462 | } | ||
463 | 463 | | |||
464 | foreach (const QPixmap &pixmap, m_shadowPixmaps) { | 464 | for (const QPixmap &pixmap : qAsConst(m_shadowPixmaps)) { | ||
465 | if (!pixmap.isNull()) { | 465 | if (!pixmap.isNull()) { | ||
466 | XFreePixmap(display, reinterpret_cast<unsigned long>(createPixmap(pixmap))); | 466 | XFreePixmap(display, reinterpret_cast<unsigned long>(createPixmap(pixmap))); | ||
467 | } | 467 | } | ||
468 | } | 468 | } | ||
469 | 469 | | |||
470 | if (!m_emptyCornerPix.isNull()) { | 470 | if (!m_emptyCornerPix.isNull()) { | ||
471 | XFreePixmap(display, reinterpret_cast<unsigned long>(createPixmap(m_emptyCornerPix))); | 471 | XFreePixmap(display, reinterpret_cast<unsigned long>(createPixmap(m_emptyCornerPix))); | ||
472 | } | 472 | } | ||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |