summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-09-25 18:17:39 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-09-26 07:11:56 +0200
commiteacc3489392bf4006acdd10bcd191afe2a5c92e2 (patch)
treeb82858a2feae16f9fb50f32aa7d650a9b7204f75
parent25f8b88ac9d602c1c518561c0f641a1e21699338 (diff)
tdf#160837 vcl: Protect SalFrame::maGeometry access
Make SalFrame::maGeometry a protected instead of a public class member. This restricts direct access to subclasses and friends, making it easier to keep track and preventing direct access (including the possibility to set a different geometry) from "random" places. Other code previously directly accessing SalFrame::maGeometry was adjusted in previous commits. Change-Id: I8b41f382228e48afb94da88f99d1cfb3c3b8f834 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173960 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--vcl/inc/salframe.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/inc/salframe.hxx b/vcl/inc/salframe.hxx
index ab2ce4d0430f..aec104b43175 100644
--- a/vcl/inc/salframe.hxx
+++ b/vcl/inc/salframe.hxx
@@ -119,13 +119,12 @@ private:
SALFRAMEPROC m_pProc;
Link<bool, void> m_aModalHierarchyHdl;
protected:
+ SalFrameGeometry maGeometry; ///< absolute, unmirrored values
mutable std::unique_ptr<weld::Window> m_xFrameWeld;
public:
SalFrame();
virtual ~SalFrame() override;
- SalFrameGeometry maGeometry; ///< absolute, unmirrored values
-
// SalGeometryProvider
virtual tools::Long GetWidth() const override { return maGeometry.width(); }
virtual tools::Long GetHeight() const override { return maGeometry.height(); }