Changeset View
Changeset View
Standalone View
Standalone View
shell/panelshadows.cpp
Show First 20 Lines • Show All 461 Lines • ▼ Show 20 Line(s) | 461 | if (!m_isX11) { | |||
---|---|---|---|---|---|
462 | return; | 462 | return; | ||
463 | } | 463 | } | ||
464 | 464 | | |||
465 | auto *display = QX11Info::display(); | 465 | auto *display = QX11Info::display(); | ||
466 | if (!display) { | 466 | if (!display) { | ||
467 | return; | 467 | return; | ||
468 | } | 468 | } | ||
469 | 469 | | |||
470 | foreach (const QPixmap &pixmap, m_shadowPixmaps) { | 470 | for (const QPixmap &pixmap : qAsConst(m_shadowPixmaps)) { | ||
471 | if (!pixmap.isNull()) { | 471 | if (!pixmap.isNull()) { | ||
472 | XFreePixmap(display, reinterpret_cast<unsigned long>(createPixmap(pixmap))); | 472 | XFreePixmap(display, reinterpret_cast<unsigned long>(createPixmap(pixmap))); | ||
473 | } | 473 | } | ||
474 | } | 474 | } | ||
475 | 475 | | |||
476 | if (!m_emptyCornerPix.isNull()) { | 476 | if (!m_emptyCornerPix.isNull()) { | ||
477 | XFreePixmap(display, reinterpret_cast<unsigned long>(createPixmap(m_emptyCornerPix))); | 477 | XFreePixmap(display, reinterpret_cast<unsigned long>(createPixmap(m_emptyCornerPix))); | ||
478 | } | 478 | } | ||
▲ Show 20 Lines • Show All 252 Lines • Show Last 20 Lines |