From 268a49f473c1830be269a7db5f561e3681134bbd Mon Sep 17 00:00:00 2001 From: Noel Date: Fri, 2 Oct 2020 09:36:35 +0200 Subject: loplugin:reducevarscope in desktop..emfio Change-Id: I25ca760ae15114ada621d928997a7117401c75d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103811 Tested-by: Jenkins Reviewed-by: Noel Grandin --- desktop/source/migration/services/oo3extensionmigration.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'desktop/source/migration') diff --git a/desktop/source/migration/services/oo3extensionmigration.cxx b/desktop/source/migration/services/oo3extensionmigration.cxx index a9e045ca0a77..6b68272db60a 100644 --- a/desktop/source/migration/services/oo3extensionmigration.cxx +++ b/desktop/source/migration/services/oo3extensionmigration.cxx @@ -118,12 +118,11 @@ OO3ExtensionMigration::ScanResult OO3ExtensionMigration::scanExtensionFolder( co { if (item.getFileStatus(fs) == osl::FileBase::E_None) { - OUString aDirEntryURL; if (fs.getFileType() == osl::FileStatus::Directory) aDirectories.push_back( fs.getFileURL() ); else { - aDirEntryURL = fs.getFileURL(); + OUString aDirEntryURL = fs.getFileURL(); if ( aDirEntryURL.indexOf( "/description.xml" ) > 0 ) aResult = scanDescriptionXml( aDirEntryURL ) ? SCANRESULT_MIGRATE_EXTENSION : SCANRESULT_DONTMIGRATE_EXTENSION; } -- cgit v1.2.3