diff options
author | vaxerski <[email protected]> | 2022-06-30 15:44:26 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-06-30 15:44:26 +0200 |
commit | 328b3fa4bc4f3776f2128f84709556569c4824d9 (patch) | |
tree | e00603cdf3b868facaa06478b02030c540ba283c /src/hyprerror | |
parent | d1564299d23b52e6297fa4542ce42e4a54c28cbc (diff) | |
download | Hyprland-328b3fa4bc4f3776f2128f84709556569c4824d9.tar.gz Hyprland-328b3fa4bc4f3776f2128f84709556569c4824d9.zip |
mordernize pointers
Diffstat (limited to 'src/hyprerror')
-rw-r--r-- | src/hyprerror/HyprError.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 |