fdo#57950: Remove some chained appends in vcl
Change-Id: Ib649e291d8be862edd98366cc6939cf6dc1e7158
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user