mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2024-11-16 22:25:59 +01:00
Fix clang build, second version (#33)
This commit is contained in:
parent
50852e5319
commit
f77a664e9d
1 changed files with 2 additions and 2 deletions
|
@ -199,8 +199,8 @@ void CHyprpaper::ensurePoolBuffersPresent() {
|
|||
if (m->size == Vector2D())
|
||||
continue;
|
||||
|
||||
auto it = std::find_if(m_vBuffers.begin(), m_vBuffers.end(), [&](const std::unique_ptr<SPoolBuffer>& el) {
|
||||
return el->target == wt.m_szPath && el->pixelSize == m->size * m->scale;
|
||||
auto it = std::find_if(m_vBuffers.begin(), m_vBuffers.end(), [wt = &wt, &m](const std::unique_ptr<SPoolBuffer>& el) {
|
||||
return el->target == wt->m_szPath && el->pixelSize == m->size * m->scale;
|
||||
});
|
||||
|
||||
if (it == m_vBuffers.end()) {
|
||||
|
|
Loading…
Reference in a new issue