From 2626f89ea6fe0df585df28052bf1fcca2c50fe8e Mon Sep 17 00:00:00 2001 From: davc0n Date: Sun, 4 May 2025 19:21:36 +0200 Subject: protocols: refactor class member vars (n-t) (#10273) --- src/protocols/TearingControl.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/protocols/TearingControl.hpp') diff --git a/src/protocols/TearingControl.hpp b/src/protocols/TearingControl.hpp index 7763214e..b58ec8e3 100644 --- a/src/protocols/TearingControl.hpp +++ b/src/protocols/TearingControl.hpp @@ -16,19 +16,19 @@ class CTearingControl { bool good(); bool operator==(const wl_resource* other) const { - return other == resource->resource(); + return other == m_resource->resource(); } bool operator==(const CTearingControl* other) const { - return other->resource == resource; + return other->m_resource == m_resource; } private: void updateWindow(); - SP resource; - PHLWINDOWREF pWindow; - wpTearingControlV1PresentationHint hint = WP_TEARING_CONTROL_V1_PRESENTATION_HINT_VSYNC; + SP m_resource; + PHLWINDOWREF m_window; + wpTearingControlV1PresentationHint m_hint = WP_TEARING_CONTROL_V1_PRESENTATION_HINT_VSYNC; friend class CTearingControlProtocol; }; @@ -46,8 +46,8 @@ class CTearingControlProtocol : public IWaylandProtocol { void onWindowDestroy(PHLWINDOW pWindow); // - std::vector> m_vManagers; - std::vector> m_vTearingControllers; + std::vector> m_managers; + std::vector> m_tearingControllers; friend class CTearingControl; }; -- cgit v1.2.3