protocols: refactor class member vars (a-m) (#10265)

This commit is contained in:
davc0n 2025-05-04 00:13:29 +02:00 committed by GitHub
parent 46ac115bd1
commit adbae0f74d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
58 changed files with 1566 additions and 1561 deletions

View file

@ -14,9 +14,9 @@ class CForeignToplevelHandle {
PHLWINDOW window();
private:
SP<CExtForeignToplevelHandleV1> resource;
PHLWINDOWREF pWindow;
bool closed = false;
SP<CExtForeignToplevelHandleV1> m_resource;
PHLWINDOWREF m_window;
bool m_closed = false;
friend class CForeignToplevelList;
friend class CForeignToplevelProtocol;
@ -34,12 +34,12 @@ class CForeignToplevelList {
bool good();
private:
SP<CExtForeignToplevelListV1> resource;
bool finished = false;
SP<CExtForeignToplevelListV1> m_resource;
bool m_finished = false;
SP<CForeignToplevelHandle> handleForWindow(PHLWINDOW pWindow);
std::vector<WP<CForeignToplevelHandle>> handles;
std::vector<WP<CForeignToplevelHandle>> m_handles;
};
class CForeignToplevelProtocol : public IWaylandProtocol {
@ -55,8 +55,8 @@ class CForeignToplevelProtocol : public IWaylandProtocol {
bool windowValidForForeign(PHLWINDOW pWindow);
//
std::vector<UP<CForeignToplevelList>> m_vManagers;
std::vector<SP<CForeignToplevelHandle>> m_vHandles;
std::vector<UP<CForeignToplevelList>> m_managers;
std::vector<SP<CForeignToplevelHandle>> m_handles;
friend class CForeignToplevelList;
friend class CForeignToplevelHandle;