diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-09-25 18:17:39 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-09-26 07:11:56 +0200 |
commit | eacc3489392bf4006acdd10bcd191afe2a5c92e2 (patch) | |
tree | b82858a2feae16f9fb50f32aa7d650a9b7204f75 /vcl/inc | |
parent | 25f8b88ac9d602c1c518561c0f641a1e21699338 (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>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/salframe.hxx | 3 |
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(); } |