summaryrefslogtreecommitdiff
path: root/desktop/source/pkgchk
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/pkgchk')
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_app.cxx5
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx20
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_shared.h1
3 files changed, 9 insertions, 17 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
index edbc84eff605..725067c20925 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
@@ -386,9 +386,8 @@ extern "C" int unopkg_main()
Reference<deployment::XExtensionManager> xExtensionManager(
deployment::ExtensionManager::get( xComponentContext ) );
- Reference< css::ucb::XCommandEnvironment > xCmdEnv(
- createCmdEnv( xComponentContext, logFile,
- option_force, option_verbose, option_suppressLicense) );
+ Reference<css::ucb::XCommandEnvironment> xCmdEnv(
+ createCmdEnv(xComponentContext, option_force, option_verbose, option_suppressLicense));
//synchronize bundled/shared extensions
//Do not synchronize when command is "reinstall". This could add types and services to UNO and
diff --git a/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx b/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
index 2ef5295ec68a..2cb0ebf0dec3 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
@@ -73,7 +73,6 @@ public:
virtual ~CommandEnvironmentImpl() override;
CommandEnvironmentImpl(
Reference<XComponentContext> const & xComponentContext,
- OUString const & log_file,
bool option_force_overwrite,
bool option_verbose,
bool option_suppress_license);
@@ -96,7 +95,6 @@ public:
CommandEnvironmentImpl::CommandEnvironmentImpl(
Reference<XComponentContext> const & xComponentContext,
- OUString const & log_file,
bool option_force_overwrite,
bool option_verbose,
bool option_suppressLicense)
@@ -106,15 +104,12 @@ CommandEnvironmentImpl::CommandEnvironmentImpl(
m_option_suppress_license( option_suppressLicense ),
m_xComponentContext(xComponentContext)
{
- if (!log_file.isEmpty()) {
- const Any logfile(log_file);
- m_xLogFile.set(
- xComponentContext->getServiceManager()
- ->createInstanceWithArgumentsAndContext(
- "com.sun.star.comp.deployment.ProgressLog",
- Sequence<Any>( &logfile, 1 ), xComponentContext ),
- UNO_QUERY_THROW );
- }
+ m_xLogFile.set(
+ xComponentContext->getServiceManager()
+ ->createInstanceWithArgumentsAndContext(
+ "com.sun.star.comp.deployment.ProgressLog",
+ Sequence<Any>(), xComponentContext ),
+ UNO_QUERY_THROW );
}
@@ -381,13 +376,12 @@ namespace unopkg {
Reference< XCommandEnvironment > createCmdEnv(
Reference< XComponentContext > const & xContext,
- OUString const & logFile,
bool option_force_overwrite,
bool option_verbose,
bool option_suppress_license)
{
return new CommandEnvironmentImpl(
- xContext, logFile, option_force_overwrite, option_verbose, option_suppress_license);
+ xContext, option_force_overwrite, option_verbose, option_suppress_license);
}
} // unopkg
diff --git a/desktop/source/pkgchk/unopkg/unopkg_shared.h b/desktop/source/pkgchk/unopkg/unopkg_shared.h
index 0028880b16aa..6d23b4c8f39e 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_shared.h
+++ b/desktop/source/pkgchk/unopkg/unopkg_shared.h
@@ -94,7 +94,6 @@ OUString makeAbsoluteFileUrl(
css::uno::Reference<css::ucb::XCommandEnvironment> createCmdEnv(
css::uno::Reference<css::uno::XComponentContext> const & xContext,
- OUString const & logFile,
bool option_force_overwrite,
bool option_verbose,
bool option_suppressLicense);