sw/source/core/inc/frame.hxx     |    2 +-
 sw/source/core/layout/newfrm.cxx |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 302f18ea4c870ddf75cb75d84be7fb762c5da905
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Jul 22 21:16:39 2025 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Jul 23 15:57:31 2025 +0200

    These never change
    
    Change-Id: I84f7cff6d1ee5bbfb7deec2d2f690e2cc8e75ea9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188204
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx
index 9e9df2583b80..04c58e76cf24 100644
--- a/sw/source/core/inc/frame.hxx
+++ b/sw/source/core/inc/frame.hxx
@@ -1401,7 +1401,7 @@ struct SwRectFnCollection
 typedef const SwRectFnCollection* SwRectFn;
 
 // This class allows to use proper methods regardless of orientation (LTR/RTL, 
horizontal or vertical)
-extern SwRectFn fnRectHori, fnRectVert, fnRectVertL2R, fnRectVertL2RB2T;
+extern const SwRectFn fnRectHori, fnRectVert, fnRectVertL2R, fnRectVertL2RB2T;
 class SwRectFnSet {
 public:
     explicit SwRectFnSet(const SwFrame* pFrame) { Refresh(pFrame); }
diff --git a/sw/source/core/layout/newfrm.cxx b/sw/source/core/layout/newfrm.cxx
index 41dca66aeabc..48d539504f64 100644
--- a/sw/source/core/layout/newfrm.cxx
+++ b/sw/source/core/layout/newfrm.cxx
@@ -284,10 +284,10 @@ const SwRectFnCollection aVerticalLeftToRightBottomToTop 
= {
     /*.fnSetTopAndHeight =*/&SwRect::SetLeftAndWidth
 };
 
-SwRectFn fnRectHori = &aHorizontal;
-SwRectFn fnRectVert = &aVertical;
-SwRectFn fnRectVertL2R = &aVerticalLeftToRight;
-SwRectFn fnRectVertL2RB2T = &aVerticalLeftToRightBottomToTop;
+const SwRectFn fnRectHori = &aHorizontal;
+const SwRectFn fnRectVert = &aVertical;
+const SwRectFn fnRectVertL2R = &aVerticalLeftToRight;
+const SwRectFn fnRectVertL2RB2T = &aVerticalLeftToRightBottomToTop;
 
 // #i65250#
 sal_uInt32 SwFrameAreaDefinition::snLastFrameId=0;

Reply via email to