summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-07 15:56:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-07 19:15:55 +0000
commitc596fd59dc75823002bdfd3676d600a56e3bfb5e (patch)
tree03a4f761c0e729de27a245bcf3a7701fd5b35781 /desktop
parente096fbc3e06d2c2b55ef8706c954efb6555ca0e6 (diff)
no need to allocate these separately
they are all one or two words in size Change-Id: I86611e14a32dda3ae2226bbfa775ad0234513888 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148425 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/dp_log.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/deployment/dp_log.cxx b/desktop/source/deployment/dp_log.cxx
index 9cdf8d071a99..5d75422cf0d5 100644
--- a/desktop/source/deployment/dp_log.cxx
+++ b/desktop/source/deployment/dp_log.cxx
@@ -40,7 +40,7 @@ namespace {
class ProgressLogImpl : public cppu::BaseMutex, public t_log_helper
{
- std::unique_ptr<comphelper::EventLogger> m_logger;
+ comphelper::EventLogger m_logger;
protected:
virtual void SAL_CALL disposing() override;
@@ -77,9 +77,9 @@ ProgressLogImpl::ProgressLogImpl(
Sequence<Any> const & /* args */,
Reference<XComponentContext> const & xContext )
: t_log_helper( m_aMutex )
-{
// Use the logger created by unopkg app
- m_logger.reset(new comphelper::EventLogger(xContext, "unopkg"));
+ , m_logger(xContext, "unopkg")
+{
}
// XServiceInfo
@@ -122,7 +122,7 @@ void ProgressLogImpl::update( Any const & Status )
logLevel = LogLevel::SEVERE;
buf.append( ::comphelper::anyToString(Status) );
}
- m_logger->log(logLevel, buf.makeStringAndClear());
+ m_logger.log(logLevel, buf.makeStringAndClear());
}