summaryrefslogtreecommitdiff
path: root/sw/source/filter/basflt
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-03 15:47:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-04 11:03:13 +0200
commit96fb8f88bd56c113eb23e50d23a038509703c288 (patch)
tree749a70b903289b76d10cc5e2df1db2708cb84ad0 /sw/source/filter/basflt
parent6a0163d967ce0482598eeebbcc5a4f413f190533 (diff)
elide some SwNodeIndex temporaries
Change-Id: I5391aa409d760870ead26d43b2287b23d2d40089 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137776 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/basflt')
-rw-r--r--sw/source/filter/basflt/shellio.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/filter/basflt/shellio.cxx b/sw/source/filter/basflt/shellio.cxx
index 395853dba02d..d8e1b3e9ce94 100644
--- a/sw/source/filter/basflt/shellio.cxx
+++ b/sw/source/filter/basflt/shellio.cxx
@@ -117,8 +117,7 @@ ErrCode SwReader::Read( const Reader& rOptions )
else
{
// if the Reader was not called by a Shell, create a PaM ourselves
- SwNodeIndex nNode( mxDoc->GetNodes().GetEndOfContent(), -1 );
- pPam = new SwPaM( nNode );
+ pPam = new SwPaM( mxDoc->GetNodes().GetEndOfContent(), SwNodeOffset(-1) );
// For Web documents the default template was set already by InitNew,
// unless the filter is not HTML,
// or a SetTemplateName was called in ConvertFrom.