diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-02 22:32:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-02 22:32:43 +0200 |
commit | eef90bd694536c73922b681581138957b711f144 (patch) | |
tree | 2cf6ede7240bb4c0f0b6605f29f34f2b0c9b8f97 /desktop | |
parent | 2a468fff56deeefb8d77d971e2f21c90e435568a (diff) |
loplugin:casttovoid: desktop
Change-Id: Iea973ac2047c030019b70e6db37328d05058af08
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/check_ext_deps.cxx | 1 | ||||
-rw-r--r-- | desktop/source/app/opencl.cxx | 1 | ||||
-rw-r--r-- | desktop/source/deployment/manager/dp_activepackages.cxx | 2 | ||||
-rw-r--r-- | desktop/source/deployment/misc/dp_update.cxx | 2 | ||||
-rw-r--r-- | desktop/source/deployment/registry/component/dp_component.cxx | 1 | ||||
-rw-r--r-- | desktop/source/deployment/registry/help/dp_help.cxx | 6 | ||||
-rw-r--r-- | desktop/source/migration/migration.cxx | 1 |
7 files changed, 3 insertions, 11 deletions
diff --git a/desktop/source/app/check_ext_deps.cxx b/desktop/source/app/check_ext_deps.cxx index 6440786317e1..a9edc0c11b14 100644 --- a/desktop/source/app/check_ext_deps.cxx +++ b/desktop/source/app/check_ext_deps.cxx @@ -290,7 +290,6 @@ static bool impl_checkDependencies( const uno::Reference< uno::XComponentContext } catch ( const uno::RuntimeException & ) { throw; } catch (const uno::Exception & exc) { - (void) exc; SAL_WARN( "desktop.app", "" << exc.Message ); } diff --git a/desktop/source/app/opencl.cxx b/desktop/source/app/opencl.cxx index 55a2dceef234..05afc6411837 100644 --- a/desktop/source/app/opencl.cxx +++ b/desktop/source/app/opencl.cxx @@ -96,7 +96,6 @@ bool testOpenCLCompute(const Reference< XDesktop2 > &xDesktop, const OUString &r } catch (const css::uno::Exception &e) { - (void)e; SAL_WARN("opencl", "OpenCL testing failed - disabling: " << e.Message); } diff --git a/desktop/source/deployment/manager/dp_activepackages.cxx b/desktop/source/deployment/manager/dp_activepackages.cxx index 410c0aab528a..879400546460 100644 --- a/desktop/source/deployment/manager/dp_activepackages.cxx +++ b/desktop/source/deployment/manager/dp_activepackages.cxx @@ -121,7 +121,9 @@ ActivePackages::ActivePackages(OUString const & url) : m_map(url) #endif { +#if !HAVE_FEATURE_EXTENSIONS (void) url; +#endif } ActivePackages::~ActivePackages() {} diff --git a/desktop/source/deployment/misc/dp_update.cxx b/desktop/source/deployment/misc/dp_update.cxx index f20da27e0d5a..a3e0b4062534 100644 --- a/desktop/source/deployment/misc/dp_update.cxx +++ b/desktop/source/deployment/misc/dp_update.cxx @@ -363,7 +363,6 @@ UpdateInfoMap getOnlineUpdateInfos( UpdateInfoMap::value_type( dp_misc::getIdentifier(extension), UpdateInfo(extension))); OSL_ASSERT(insertRet.second); - (void)insertRet; } } else @@ -376,7 +375,6 @@ UpdateInfoMap getOnlineUpdateInfos( UpdateInfoMap::value_type( dp_misc::getIdentifier(*i), UpdateInfo(*i))); OSL_ASSERT(insertRet.second); - (void)insertRet; } } diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx index 2b04a5c5c94e..60a2686ca99a 100644 --- a/desktop/source/deployment/registry/component/dp_component.cxx +++ b/desktop/source/deployment/registry/component/dp_component.cxx @@ -1614,7 +1614,6 @@ BackendImpl::OtherPlatformPackageImpl::processPackage_( Reference<XCommandEnvironment> const& /* xCmdEnv */) { OSL_PRECOND(!bRegisterPackage, "this class can only be used for removing packages!"); - (void) bRegisterPackage; OUString const aURL(getURL()); diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx index 6ccdd07b07c3..f7b64bb3a59d 100644 --- a/desktop/source/deployment/registry/help/dp_help.cxx +++ b/desktop/source/deployment/registry/help/dp_help.cxx @@ -325,13 +325,9 @@ void BackendImpl::PackageImpl::processPackage_( ::osl::ResettableMutexGuard &, bool doRegisterPackage, bool /* startup */, - ::rtl::Reference<AbortChannel> const & abortChannel, + ::rtl::Reference<AbortChannel> const &, Reference<XCommandEnvironment> const & xCmdEnv ) { - (void)doRegisterPackage; - (void)abortChannel; - (void)xCmdEnv; - BackendImpl* that = getMyBackend(); that->implProcessHelp( this, doRegisterPackage, xCmdEnv); } diff --git a/desktop/source/migration/migration.cxx b/desktop/source/migration/migration.cxx index 56fcbd58d481..e30e26f7a4a1 100644 --- a/desktop/source/migration/migration.cxx +++ b/desktop/source/migration/migration.cxx @@ -209,7 +209,6 @@ void Migration::migrateSettingsIfNecessary() SAL_WARN( "desktop", "doMigration() exception: " << e.Message); } OSL_ENSURE(bResult, "Migration has not been successful"); - (void)bResult; } MigrationImpl::MigrationImpl() |