From a3f3cead5d7fed99ea78c2a12b8671f18d156e23 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 11 Jan 2016 11:22:46 +0200 Subject: loplugin: unused return values in desktop Change-Id: Iec7a150c6bdb3b25fe24d711e3e453e1d8a5d26e --- desktop/source/migration/services/basicmigration.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'desktop/source/migration/services/basicmigration.cxx') diff --git a/desktop/source/migration/services/basicmigration.cxx b/desktop/source/migration/services/basicmigration.cxx index 457b479fb0a5..26b0ca391f34 100644 --- a/desktop/source/migration/services/basicmigration.cxx +++ b/desktop/source/migration/services/basicmigration.cxx @@ -106,7 +106,7 @@ namespace migration - ::osl::FileBase::RC BasicMigration::checkAndCreateDirectory( INetURLObject& rDirURL ) + void BasicMigration::checkAndCreateDirectory( INetURLObject& rDirURL ) { ::osl::FileBase::RC aResult = ::osl::Directory::create( rDirURL.GetMainURL( INetURLObject::DECODE_TO_IURI ) ); if ( aResult == ::osl::FileBase::E_NOENT ) @@ -114,11 +114,7 @@ namespace migration INetURLObject aBaseURL( rDirURL ); aBaseURL.removeSegment(); checkAndCreateDirectory( aBaseURL ); - return ::osl::Directory::create( rDirURL.GetMainURL( INetURLObject::DECODE_TO_IURI ) ); - } - else - { - return aResult; + ::osl::Directory::create( rDirURL.GetMainURL( INetURLObject::DECODE_TO_IURI ) ); } } -- cgit