diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-09-08 21:54:17 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-09-08 21:54:41 +0200 |
commit | 0f2435c20289f9d29b34eeae588805deb25adeae (patch) | |
tree | 2720cae6c046c1af30a73147f46f43071d589c04 /vcl | |
parent | convert add/rename entries dialogs to .ui (diff) | |
download | core-0f2435c20289f9d29b34eeae588805deb25adeae.tar.gz core-0f2435c20289f9d29b34eeae588805deb25adeae.zip |
fdo#57950: Remove some chained appends in vcl
Change-Id: Ib649e291d8be862edd98366cc6939cf6dc1e7158
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/generic/printer/ppdparser.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index b82e20e85256..ffe899a7009b 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -419,15 +419,11 @@ void PPDParser::scanPPDDir( const OUString& rDir ) osl::FileStatus aStatus( osl_FileStatus_Mask_FileName ); if( aItem.getFileStatus( aStatus ) == osl::FileBase::E_None ) { - OUStringBuffer aURLBuf( rDir.getLength() + 64 ); - aURLBuf.append( rDir ); - aURLBuf.append( sal_Unicode( '/' ) ); - aURLBuf.append( aStatus.getFileName() ); - OUString aFileURL, aFileName; osl::FileStatus::Type eType = osl::FileStatus::Unknown; + OUString aURL = OUString(rDir + "/" + aStatus.getFileName()); - if( resolveLink( aURLBuf.makeStringAndClear(), aFileURL, aFileName, eType ) == osl::FileBase::E_None ) + if(resolveLink( aURL, aFileURL, aFileName, eType ) == osl::FileBase::E_None) { if( eType == osl::FileStatus::Regular ) { |