fdo#57950: Remove some chained appends in vcl

Change-Id: Ib649e291d8be862edd98366cc6939cf6dc1e7158
This commit is contained in:
Julien Nabet
2013-09-08 21:54:17 +02:00
parent 4b001d5d98
commit 0f2435c202

View File

@@ -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 )
{