From beee22a95ed9044950e5486f22edd813e00ffa2c Mon Sep 17 00:00:00 2001 From: Kamikadze <40305144+Kam1k4dze@users.noreply.github.com> Date: Thu, 14 Aug 2025 19:44:56 +0500 Subject: refactor: Use new hyprutils casts (#11377) --- src/managers/LayoutManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/managers/LayoutManager.cpp') diff --git a/src/managers/LayoutManager.cpp b/src/managers/LayoutManager.cpp index 08bbcf44..449d1700 100644 --- a/src/managers/LayoutManager.cpp +++ b/src/managers/LayoutManager.cpp @@ -12,7 +12,7 @@ IHyprLayout* CLayoutManager::getCurrentLayout() { void CLayoutManager::switchToLayout(std::string layout) { for (size_t i = 0; i < m_layouts.size(); ++i) { if (m_layouts[i].first == layout) { - if (i == (size_t)m_currentLayoutID) + if (i == sc(m_currentLayoutID)) return; getCurrentLayout()->onDisable(); @@ -31,7 +31,7 @@ bool CLayoutManager::addLayout(const std::string& name, IHyprLayout* layout) { m_layouts.emplace_back(std::make_pair<>(name, layout)); - Debug::log(LOG, "Added new layout {} at {:x}", name, (uintptr_t)layout); + Debug::log(LOG, "Added new layout {} at {:x}", name, rc(layout)); return true; } @@ -45,7 +45,7 @@ bool CLayoutManager::removeLayout(IHyprLayout* layout) { if (m_currentLayoutID == IT - m_layouts.begin()) switchToLayout("dwindle"); - Debug::log(LOG, "Removed a layout {} at {:x}", IT->first, (uintptr_t)layout); + Debug::log(LOG, "Removed a layout {} at {:x}", IT->first, rc(layout)); std::erase(m_layouts, *IT); -- cgit v1.2.3