summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dochdl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-10-30 12:36:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-10-31 12:29:49 +0100
commit0f57a02c5aabbc09cfd6c912d211d21a748abc88 (patch)
treeee00de3806b353046c63c47b5ae986df00c30e46 /sw/source/uibase/dochdl
parent6baffb816eb2b5b4223059c3bfadb8d3d8cac7d0 (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/uibase/dochdl')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 496d0c8903ef..8c6d6bda92eb 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -1343,9 +1343,9 @@ SwPasteContext::~SwPasteContext()
m_oPaM->GetPoint()->SetContent(m_nStartContent);
aPropertyValue.Name = "TextRange";
- const uno::Reference<text::XTextRange> xTextRange = SwXTextRange::CreateXTextRange(
+ const rtl::Reference<SwXTextRange> xTextRange = SwXTextRange::CreateXTextRange(
m_oPaM->GetDoc(), *m_oPaM->GetPoint(), m_oPaM->GetMark());
- aPropertyValue.Value <<= xTextRange;
+ aPropertyValue.Value <<= uno::Reference<text::XTextRange>(xTextRange);
break;
}
}