From 328b3fa4bc4f3776f2128f84709556569c4824d9 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 30 Jun 2022 15:44:26 +0200 Subject: mordernize pointers --- src/hyprerror/HyprError.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/hyprerror/HyprError.cpp') diff --git a/src/hyprerror/HyprError.cpp b/src/hyprerror/HyprError.cpp index 135f9635..7255aae9 100644 --- a/src/hyprerror/HyprError.cpp +++ b/src/hyprerror/HyprError.cpp @@ -12,7 +12,7 @@ void CHyprError::createQueued() { m_tTexture.destroyTexture(); } - const auto PMONITOR = &g_pCompositor->m_lMonitors.front(); + const auto PMONITOR = g_pCompositor->m_vMonitors.front().get(); const auto CAIROSURFACE = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, PMONITOR->vecSize.x, PMONITOR->vecSize.y); @@ -95,11 +95,11 @@ void CHyprError::draw() { m_tTexture.destroyTexture(); m_bIsCreated = false; m_szQueued = ""; - g_pHyprRenderer->damageMonitor(&g_pCompositor->m_lMonitors.front()); + g_pHyprRenderer->damageMonitor(g_pCompositor->m_vMonitors.front().get()); return; } - const auto PMONITOR = &g_pCompositor->m_lMonitors.front(); + const auto PMONITOR = g_pCompositor->m_vMonitors.front().get(); if (g_pHyprOpenGL->m_RenderData.pMonitor != PMONITOR) return; // wrong mon -- cgit v1.2.3