diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-24 10:57:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-24 12:31:35 +0100 |
commit | 665d085511a64959ceafd869e6331877ed711c80 (patch) | |
tree | 06f341e6bb2d4d7d643b7dda2a130b670e534491 /ucb | |
parent | 793b69fe73eb2d6ae4c42f04a66df8c180e42886 (diff) |
loplugin:countusersofdefaultparams in sw (1)
Change-Id: I0d14f9c375f93079aef21ca4f1132adc4e1fe06c
Reviewed-on: https://gerrit.libreoffice.org/45207
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/filtask.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/filtask.hxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/ucb/source/ucp/file/filtask.cxx b/ucb/source/ucp/file/filtask.cxx index d81ecd6b9992..9b49b26c5be7 100644 --- a/ucb/source/ucp/file/filtask.cxx +++ b/ucb/source/ucp/file/filtask.cxx @@ -409,7 +409,7 @@ TaskManager::startTask( { throw DuplicateCommandIdentifierException( OSL_LOG_PREFIX ); } - m_aTaskMap[ CommandId ] = TaskHandling( xCommandEnv ); + m_aTaskMap.emplace( CommandId, TaskHandling( xCommandEnv )); } diff --git a/ucb/source/ucp/file/filtask.hxx b/ucb/source/ucp/file/filtask.hxx index 49678e57ede8..a08355744d26 100644 --- a/ucb/source/ucp/file/filtask.hxx +++ b/ucb/source/ucp/file/filtask.hxx @@ -97,8 +97,7 @@ namespace fileaccess public: explicit TaskHandling( - const css::uno::Reference< css::ucb::XCommandEnvironment >& xCommandEnv - = css::uno::Reference< css::ucb::XCommandEnvironment >( nullptr ) ) + const css::uno::Reference< css::ucb::XCommandEnvironment >& xCommandEnv ) : m_bAbort( false ), m_bHandled( false ), m_nErrorCode( TASKHANDLER_NO_ERROR ), |