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 0cc28876d78c..3b55739003c8 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -246,7 +246,7 @@ OUString lcl_createName(
sal_Int32 nOffset = rLeadingChars.lastIndexOf("/");
if (-1 != nOffset)
{
- OUString aDirName = aName + OUString( rLeadingChars.getStr(), nOffset );
+ OUString aDirName = aName + rLeadingChars.copy( 0, nOffset );
TempDirCreatedObserver observer;
FileBase::RC err = Directory::createPath( aDirName, &observer );
if ( err != FileBase::E_None && err != FileBase::E_EXIST )