summaryrefslogtreecommitdiff
path: root/unotools/source/ucbhelper/tempfile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/ucbhelper/tempfile.cxx')
-rw-r--r--unotools/source/ucbhelper/tempfile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index d8f406b7ae05..c63287efe114 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -258,7 +258,7 @@ static OUString lcl_createName(
sal_Int32 nOffset = rLeadingChars.lastIndexOf("/");
OUString aDirName;
if (-1 != nOffset)
- aDirName = aName + rLeadingChars.copy( 0, nOffset );
+ aDirName = aName + rLeadingChars.subView( 0, nOffset );
else
aDirName = aName;
TempDirCreatedObserver observer;