diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-28 23:43:11 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-28 23:43:11 +0200 |
| commit | 894ae2d74217f4c37653022d855d00fd46c39457 (patch) | |
| tree | 443af7c7b6ff0909e691cba39d7b8577d1900381 /src/layout/DwindleLayout.cpp | |
| parent | 08e0567d3ae348f950aacbb734ead61b0d8eebe1 (diff) | |
Use C++-styled pointers for decorations
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
| -rw-r--r-- | src/layout/DwindleLayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index 0f41265b..8117622c 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -277,7 +277,7 @@ void CHyprDwindleLayout::onWindowCreated(CWindow* pWindow) { // means we opened on a group // add the group deco - pWindow->m_dWindowDecorations.emplace_back(new CHyprGroupBarDecoration(pWindow)); + pWindow->m_dWindowDecorations.emplace_back(std::make_unique<CHyprGroupBarDecoration>(pWindow)); PNODE->pGroupParent = OPENINGON->pGroupParent; PNODE->pGroupParent->groupMembers.push_back(PNODE); @@ -733,7 +733,7 @@ void CHyprDwindleLayout::toggleWindowGroup(CWindow* pWindow) { c->pGroupParent = PPARENT; c->pWindow->m_cRealBorderColor = GROUPINACTIVEBORDERCOL; - c->pWindow->m_dWindowDecorations.push_back(new CHyprGroupBarDecoration(c->pWindow)); + c->pWindow->m_dWindowDecorations.push_back(std::make_unique<CHyprGroupBarDecoration>(c->pWindow)); if (c->pWindow == g_pCompositor->m_pLastWindow) c->pWindow->m_cRealBorderColor = CColor(g_pConfigManager->getInt("dwindle:col.group_border_active")); |
