From 6c9dfa8ab7cc25d6cc3ce988803118b5d56ea30b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 25 May 2015 15:28:47 +0100 Subject: cppcheck: noExplicitConstructor Change-Id: If947733a205e8ece1845079be95cbc2d6cbd5029 --- ucb/source/ucp/gvfs/gvfs_content.hxx | 2 +- ucb/source/ucp/gvfs/gvfs_directory.cxx | 2 +- ucb/source/ucp/gvfs/gvfs_provider.cxx | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'ucb/source/ucp/gvfs') diff --git a/ucb/source/ucp/gvfs/gvfs_content.hxx b/ucb/source/ucp/gvfs/gvfs_content.hxx index bae3fca3b823..0b062f4ceede 100644 --- a/ucb/source/ucp/gvfs/gvfs_content.hxx +++ b/ucb/source/ucp/gvfs/gvfs_content.hxx @@ -61,7 +61,7 @@ class Authentication { public: // Helper class to make exceptions pleasant - Authentication( const com::sun::star::uno::Reference< + explicit Authentication( const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > & xEnv ); ~Authentication(); }; diff --git a/ucb/source/ucp/gvfs/gvfs_directory.cxx b/ucb/source/ucp/gvfs/gvfs_directory.cxx index 5f7c70ee50df..dd5c1036ba71 100644 --- a/ucb/source/ucp/gvfs/gvfs_directory.cxx +++ b/ucb/source/ucp/gvfs/gvfs_directory.cxx @@ -78,7 +78,7 @@ struct ResultListEntry uno::Reference< sdbc::XRow > xRow; GnomeVFSFileInfo aInfo; - ResultListEntry( const GnomeVFSFileInfo *fileInfo) + explicit ResultListEntry( const GnomeVFSFileInfo *fileInfo) { gnome_vfs_file_info_copy (&aInfo, fileInfo); } diff --git a/ucb/source/ucp/gvfs/gvfs_provider.cxx b/ucb/source/ucp/gvfs/gvfs_provider.cxx index b6372234da98..68789c04034d 100644 --- a/ucb/source/ucp/gvfs/gvfs_provider.cxx +++ b/ucb/source/ucp/gvfs/gvfs_provider.cxx @@ -145,9 +145,8 @@ ContentProvider::queryContent( //============================ shlib entry points ============================================= -extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpgvfs1_component_getFactory( const sal_Char *pImplName, - void *pServiceManager, - void */*pRegistryKey*/ ) +extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpgvfs1_component_getFactory( + const sal_Char *pImplName, void* pServiceManager, void* /*pRegistryKey*/) { void * pRet = 0; -- cgit