diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-30 12:36:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-31 12:29:49 +0100 |
commit | 0f57a02c5aabbc09cfd6c912d211d21a748abc88 (patch) | |
tree | ee00de3806b353046c63c47b5ae986df00c30e46 /sw/source/filter/xml/xmlimp.cxx | |
parent | 6baffb816eb2b5b4223059c3bfadb8d3d8cac7d0 (diff) |
tdf#126788 return concrete type from CreateXTextRange
to make it easier to optimise call sites unnecessarily creates tons of
these
Change-Id: I39bced82ae03fe33dbf0592f384332ab49f914fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142036
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml/xmlimp.cxx')
-rw-r--r-- | sw/source/filter/xml/xmlimp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx index 1fa30ceedfdd..024531cedd44 100644 --- a/sw/source/filter/xml/xmlimp.cxx +++ b/sw/source/filter/xml/xmlimp.cxx @@ -532,7 +532,7 @@ void SwXMLImport::startDocument() } if( pCursorSh ) { - const uno::Reference<text::XTextRange> xInsertTextRange( + const rtl::Reference<SwXTextRange> xInsertTextRange( SwXTextRange::CreateXTextRange( *pDoc, *pCursorSh->GetCursor()->GetPoint(), nullptr ) ); setTextInsertMode( xInsertTextRange ); |