summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/print/printerjob.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/generic/print/printerjob.cxx')
-rw-r--r--vcl/unx/generic/print/printerjob.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/vcl/unx/generic/print/printerjob.cxx b/vcl/unx/generic/print/printerjob.cxx
index 73dedc5a2415..7d805ef942e5 100644
--- a/vcl/unx/generic/print/printerjob.cxx
+++ b/vcl/unx/generic/print/printerjob.cxx
@@ -211,18 +211,14 @@ createSpoolDir ()
do
{
- OUStringBuffer aDir( aTmpDir.getLength() + 16 );
- aDir.append( aTmpDir );
- aDir.append( "/psp" );
- aDir.append(nRand);
- OUString aResult = aDir.makeStringAndClear();
- if( osl::Directory::create( aResult ) == osl::FileBase::E_None )
+ OUString aDir = aTmpDir + "/psp" + OUString::number(nRand);
+ if( osl::Directory::create( aDir ) == osl::FileBase::E_None )
{
- osl::File::setAttributes( aResult,
+ osl::File::setAttributes( aDir,
osl_File_Attribute_OwnWrite
| osl_File_Attribute_OwnRead
| osl_File_Attribute_OwnExe );
- return aResult;
+ return aDir;
}
nRand++;
} while( nRand );