summaryrefslogtreecommitdiff
path: root/src/protocols/TearingControl.hpp
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2025-05-04 19:21:36 +0200
committerGitHub <noreply@github.com>2025-05-04 19:21:36 +0200
commit2626f89ea6fe0df585df28052bf1fcca2c50fe8e (patch)
tree6dd030f42e065e1a927ab907222e1efaf21b0bc1 /src/protocols/TearingControl.hpp
parentadbae0f74d951e06c575bad3c81a944027dfe413 (diff)
protocols: refactor class member vars (n-t) (#10273)
Diffstat (limited to 'src/protocols/TearingControl.hpp')
-rw-r--r--src/protocols/TearingControl.hpp14
1 files changed, 7 insertions, 7 deletions
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<CWpTearingControlV1> resource;
- PHLWINDOWREF pWindow;
- wpTearingControlV1PresentationHint hint = WP_TEARING_CONTROL_V1_PRESENTATION_HINT_VSYNC;
+ SP<CWpTearingControlV1> 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<UP<CWpTearingControlManagerV1>> m_vManagers;
- std::vector<UP<CTearingControl>> m_vTearingControllers;
+ std::vector<UP<CWpTearingControlManagerV1>> m_managers;
+ std::vector<UP<CTearingControl>> m_tearingControllers;
friend class CTearingControl;
};