From afc08450064199e795ed57b01cc0e32d828cf713 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 22 Aug 2023 17:10:08 +0200 Subject: [PATCH] source/Platform/PlatformWindow.h: rename parent to owner as the generic window is not really a parent to the platform one. --- source/Platform/PlatformWindow.cpp | 6 +++--- source/Platform/PlatformWindow.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/Platform/PlatformWindow.cpp b/source/Platform/PlatformWindow.cpp index 90db860..c1bdd26 100644 --- a/source/Platform/PlatformWindow.cpp +++ b/source/Platform/PlatformWindow.cpp @@ -14,10 +14,10 @@ typedef sp::X11Window WindowType; namespace sp { -PlatformWindow* PlatformWindow::make(Window* parent) +PlatformWindow* PlatformWindow::make(Window* owner) { WindowType* disp = new WindowType(); - disp->m_parent = parent; + disp->m_owner = owner; return disp; } @@ -33,7 +33,7 @@ PlatformWindow::~PlatformWindow() void PlatformWindow::onReshape(int width, int height) { // Forward to parent. - m_parent->onReshape(width, height); + m_owner->onReshape(width, height); } } // namespace sp diff --git a/source/Platform/PlatformWindow.h b/source/Platform/PlatformWindow.h index 1ce10d5..963fa69 100644 --- a/source/Platform/PlatformWindow.h +++ b/source/Platform/PlatformWindow.h @@ -18,7 +18,7 @@ class PlatformWindow { public : // Factory method. - static PlatformWindow* make(Window* parent); + static PlatformWindow* make(Window* owner); virtual ~PlatformWindow(); @@ -66,7 +66,7 @@ protected : private : - Window * m_parent; + Window * m_owner; }; } // namespace sp