From 70f87284c6ce77a49b1fac1431cea206f4b1dfa9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 5 Mar 2016 18:03:25 +0200 Subject: improve defaultparams loplugin to catch calling params with defaults like "= OUSString()" Change-Id: Iad060e318ed492c22f8be44e326174fe6d28fff9 Reviewed-on: https://gerrit.libreoffice.org/22932 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucb/source/ucp/cmis/cmis_content.cxx | 6 ++---- ucb/source/ucp/cmis/cmis_repo_content.cxx | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'ucb') diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx index 1e7aa847b97f..0fe69368d696 100644 --- a/ucb/source/ucp/cmis/cmis_content.cxx +++ b/ucb/source/ucp/cmis/cmis_content.cxx @@ -397,8 +397,7 @@ namespace cmis ucbhelper::cancelCommandExecution( ucb::IOErrorCode_INVALID_DEVICE, generateErrorArguments(m_aURL), - xEnv, - OUString()); + xEnv); } else if ( m_pSession->getRepository() == nullptr ) { @@ -420,8 +419,7 @@ namespace cmis ucbhelper::cancelCommandExecution( ucb::IOErrorCode_ABORT, uno::Sequence< uno::Any >( 0 ), - xEnv, - OUString( ) ); + xEnv ); throw uno::RuntimeException( ); } } diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx index 0073108bc2a6..1e4747b97851 100644 --- a/ucb/source/ucp/cmis/cmis_repo_content.cxx +++ b/ucb/source/ucp/cmis/cmis_repo_content.cxx @@ -195,8 +195,7 @@ namespace cmis ucbhelper::cancelCommandExecution( ucb::IOErrorCode_INVALID_DEVICE, uno::Sequence< uno::Any >( 0 ), - xEnv, - OUString( ) ); + xEnv ); m_aRepositories = session->getRepositories( ); } catch (const libcmis::Exception& e) @@ -205,8 +204,7 @@ namespace cmis ucbhelper::cancelCommandExecution( ucb::IOErrorCode_INVALID_DEVICE, uno::Sequence< uno::Any >( 0 ), - xEnv, - OUString( ) ); + xEnv ); } } else -- cgit