diff options
author | Justin Luth <jluth@mail.com> | 2024-08-22 10:20:44 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2024-08-24 14:32:05 +0200 |
commit | 9af17e84ec12e279c81020c172a682c066aba8a5 (patch) | |
tree | 5b3efe8c2cde3b57937f6299b07b913d2c861377 | |
parent | 77bbf007cd9db81c141bb123b83aac72c13a436f (diff) |
NFC ww8graf.cxx: mark never-changing, important variables as "const"
I'm trying not to polute my patches with NFC changes.
Change-Id: I057c01b945e24cf85b633c694c34824ee786face
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172295
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
-rw-r--r-- | sw/source/filter/ww8/ww8graf.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index 7b18ebdb7754..bdce9d5e340c 100644 --- a/sw/source/filter/ww8/ww8graf.cxx +++ b/sw/source/filter/ww8/ww8graf.cxx @@ -2333,8 +2333,8 @@ RndStdIds SwWW8ImplReader::ProcessEscherAlign(SvxMSDffImportRec& rRecord, WW8_FS const sal_uInt32 nCntRelTo = 4; - sal_uInt32 nXAlign = nCntXAlign > rRecord.nXAlign ? rRecord.nXAlign : 1; - sal_uInt32 nYAlign = nCntYAlign > rRecord.nYAlign ? rRecord.nYAlign : 1; + const sal_uInt32 nXAlign = nCntXAlign > rRecord.nXAlign ? rRecord.nXAlign : 1; + const sal_uInt32 nYAlign = nCntYAlign > rRecord.nYAlign ? rRecord.nYAlign : 1; // #i52565# - try to handle special case for objects in tables regarding its X Rel @@ -2347,10 +2347,13 @@ RndStdIds SwWW8ImplReader::ProcessEscherAlign(SvxMSDffImportRec& rRecord, WW8_FS rRecord.nYRelTo = sal_uInt32(rFSPA.nby); } - sal_uInt32 nXRelTo = (rRecord.nXRelTo && nCntRelTo > rRecord.nXRelTo) ? *rRecord.nXRelTo : 1; - sal_uInt32 nYRelTo = (rRecord.nYRelTo && nCntRelTo > rRecord.nYRelTo) ? *rRecord.nYRelTo : 1; + const sal_uInt32 nXRelTo + = (rRecord.nXRelTo && nCntRelTo > rRecord.nXRelTo) ? *rRecord.nXRelTo : 1; + const sal_uInt32 nYRelTo + = (rRecord.nYRelTo && nCntRelTo > rRecord.nYRelTo) ? *rRecord.nYRelTo : 1; - RndStdIds eAnchor = IsInlineEscherHack() ? RndStdIds::FLY_AS_CHAR : RndStdIds::FLY_AT_CHAR; // #i43718# + const RndStdIds eAnchor + = IsInlineEscherHack() ? RndStdIds::FLY_AS_CHAR : RndStdIds::FLY_AT_CHAR; // #i43718# SwFormatAnchor aAnchor( eAnchor ); aAnchor.SetAnchor( m_pPaM->GetPoint() ); |