summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unosect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unosect.cxx')
-rw-r--r--sw/source/core/unocore/unosect.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx
index 148a308497d2..292cfdb8ea89 100644
--- a/sw/source/core/unocore/unosect.cxx
+++ b/sw/source/core/unocore/unosect.cxx
@@ -62,6 +62,7 @@
#include <editeng/lrspitem.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/string.hxx>
+#include <o3tl/string_view.hxx>
using namespace ::com::sun::star;
@@ -697,7 +698,7 @@ void SwXTextSection::Impl::SetPropertyValues_Impl(
const OUString sFileName(
sTmp + OUStringChar(sfx2::cTokenSeparator) +
aLink.FilterName + OUStringChar(sfx2::cTokenSeparator) +
- pSectionData->GetLinkFileName().getToken(2, sfx2::cTokenSeparator));
+ o3tl::getToken(pSectionData->GetLinkFileName(), 2, sfx2::cTokenSeparator));
pSectionData->SetLinkFileName(sFileName);
if (sFileName.getLength() < 3)
{