diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-16 12:54:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-16 18:49:32 +0200 |
commit | fe9bce8049ef8749981ede192559ad71572b94d4 (patch) | |
tree | 58c052e0e8ea494492bc8885b1f8de04a00ebea9 /sw/source/core/crsr/crsrsh.cxx | |
parent | 6c32fade56c56dcb7ef3101d27dbba0226825c69 (diff) |
create less SwPosition temporaries
because they need to hook themselves into global rings, which results in
a lot of unnecessary pointer chasing
Change-Id: I27173c5f0d5e2998fdbfbb7781e2cbd1be6d14b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140065
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/crsr/crsrsh.cxx')
-rw-r--r-- | sw/source/core/crsr/crsrsh.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index b8c0bef6a0f5..0ec692f47e7d 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -1541,7 +1541,7 @@ static void lcl_CheckHiddenPara( SwPosition& rPos ) } if ( pTextNd ) - rPos = SwPosition( *pTextNd, 0 ); + rPos.Assign( *pTextNd, 0 ); } #if !ENABLE_WASM_STRIP_ACCESSIBILITY |