diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-25 15:28:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-26 09:57:21 +0100 |
commit | 6c9dfa8ab7cc25d6cc3ce988803118b5d56ea30b (patch) | |
tree | 83b683bb177d643385618e1f46642d014332a59d /ucb/source/ucp | |
parent | ecdbd313838093055c66614d7e5793aacae7c5bd (diff) |
cppcheck: noExplicitConstructor
Change-Id: If947733a205e8ece1845079be95cbc2d6cbd5029
Diffstat (limited to 'ucb/source/ucp')
57 files changed, 72 insertions, 71 deletions
diff --git a/ucb/source/ucp/cmis/cmis_datasupplier.hxx b/ucb/source/ucp/cmis/cmis_datasupplier.hxx index d90f24d0e08d..200fbe539722 100644 --- a/ucb/source/ucp/cmis/cmis_datasupplier.hxx +++ b/ucb/source/ucp/cmis/cmis_datasupplier.hxx @@ -26,7 +26,7 @@ namespace cmis com::sun::star::uno::Reference< com::sun::star::ucb::XContent > xContent; com::sun::star::uno::Reference< com::sun::star::sdbc::XRow > xRow; - ResultListEntry( com::sun::star::uno::Reference< com::sun::star::ucb::XContent > xCnt ) : xContent( xCnt ) + explicit ResultListEntry( com::sun::star::uno::Reference< com::sun::star::ucb::XContent > xCnt ) : xContent( xCnt ) { } diff --git a/ucb/source/ucp/cmis/cmis_provider.hxx b/ucb/source/ucp/cmis/cmis_provider.hxx index b0e7fecce969..efbd439462a5 100644 --- a/ucb/source/ucp/cmis/cmis_provider.hxx +++ b/ucb/source/ucp/cmis/cmis_provider.hxx @@ -23,7 +23,7 @@ private: std::map< OUString, libcmis::Session* > m_aSessionCache; public: - ContentProvider( const ::com::sun::star::uno::Reference< + explicit ContentProvider( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); virtual ~ContentProvider(); diff --git a/ucb/source/ucp/cmis/cmis_url.hxx b/ucb/source/ucp/cmis/cmis_url.hxx index 0e687f5ae100..56b1fc876859 100644 --- a/ucb/source/ucp/cmis/cmis_url.hxx +++ b/ucb/source/ucp/cmis/cmis_url.hxx @@ -28,7 +28,7 @@ namespace cmis OUString m_sPass; public: - URL( OUString const & urlStr ); + explicit URL( OUString const & urlStr ); OUString& getObjectPath( ) { return m_sPath; } OUString& getObjectId( ) { return m_sId; } diff --git a/ucb/source/ucp/expand/ucpexpand.cxx b/ucb/source/ucp/expand/ucpexpand.cxx index 5393a2ef95b9..6feebd621635 100644 --- a/ucb/source/ucp/expand/ucpexpand.cxx +++ b/ucb/source/ucp/expand/ucpexpand.cxx @@ -63,7 +63,7 @@ protected: virtual void SAL_CALL disposing() SAL_OVERRIDE; public: - inline ExpandContentProviderImpl( + explicit ExpandContentProviderImpl( uno::Reference< uno::XComponentContext > const & xComponentContext ) : t_impl_helper( m_mutex ), m_xComponentContext( xComponentContext ), diff --git a/ucb/source/ucp/ext/ucpext_provider.hxx b/ucb/source/ucp/ext/ucpext_provider.hxx index 1b0ae3358555..5efda9da4b71 100644 --- a/ucb/source/ucp/ext/ucpext_provider.hxx +++ b/ucb/source/ucp/ext/ucpext_provider.hxx @@ -34,7 +34,7 @@ namespace ucb { namespace ucp { namespace ext class ContentProvider : public ContentProvider_Base { public: - ContentProvider( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); + explicit ContentProvider( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); virtual ~ContentProvider(); // XServiceInfo diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx index 39a5c8dc230c..f6f086de729f 100644 --- a/ucb/source/ucp/file/bc.cxx +++ b/ucb/source/ucp/file/bc.cxx @@ -61,7 +61,7 @@ class fileaccess::PropertyListeners : public PropertyListeners_impl { public: - PropertyListeners( ::osl::Mutex& aMutex ) + explicit PropertyListeners( ::osl::Mutex& aMutex ) : PropertyListeners_impl( aMutex ) { } diff --git a/ucb/source/ucp/file/filcmd.hxx b/ucb/source/ucp/file/filcmd.hxx index 6863f8dde465..e33a6de6c084 100644 --- a/ucb/source/ucp/file/filcmd.hxx +++ b/ucb/source/ucp/file/filcmd.hxx @@ -39,7 +39,7 @@ namespace fileaccess { { public: - XCommandInfo_impl( shell* pMyShell ); + explicit XCommandInfo_impl( shell* pMyShell ); virtual ~XCommandInfo_impl(); diff --git a/ucb/source/ucp/file/filrec.hxx b/ucb/source/ucp/file/filrec.hxx index 6d7b8cc9c399..9760c4a6c998 100644 --- a/ucb/source/ucp/file/filrec.hxx +++ b/ucb/source/ucp/file/filrec.hxx @@ -39,7 +39,7 @@ class ReconnectingFile public: - ReconnectingFile( const OUString& aFileURL ) + explicit ReconnectingFile( const OUString& aFileURL ) : m_aFile( aFileURL ) , m_nFlags( 0 ) , m_bFlagsSet( false ) diff --git a/ucb/source/ucp/file/filtask.hxx b/ucb/source/ucp/file/filtask.hxx index acf67c6dffbf..928523d13015 100644 --- a/ucb/source/ucp/file/filtask.hxx +++ b/ucb/source/ucp/file/filtask.hxx @@ -61,7 +61,7 @@ namespace fileaccess public: - TaskHandling( + explicit TaskHandling( const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >& xCommandEnv = com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >( 0 ) ) : m_bAbort( false ), diff --git a/ucb/source/ucp/file/prov.hxx b/ucb/source/ucp/file/prov.hxx index 38d278592721..bc5389fd9928 100644 --- a/ucb/source/ucp/file/prov.hxx +++ b/ucb/source/ucp/file/prov.hxx @@ -59,7 +59,7 @@ namespace fileaccess { friend class BaseContent; public: - FileProvider( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); + explicit FileProvider( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); virtual ~FileProvider(); // XServiceInfo diff --git a/ucb/source/ucp/file/shell.hxx b/ucb/source/ucp/file/shell.hxx index 3d5cfe2a90af..a136bb7a61bb 100644 --- a/ucb/source/ucp/file/shell.hxx +++ b/ucb/source/ucp/file/shell.hxx @@ -88,7 +88,7 @@ namespace fileaccess { sal_Int16 Attributes; public: MyProperty(); - MyProperty( const OUString& __PropertyName ); + explicit MyProperty( const OUString& __PropertyName ); MyProperty( const bool& __isNative, const OUString& __PropertyName, const sal_Int32& __Handle, diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx index 59c889a03960..09a59ca431a2 100644 --- a/ucb/source/ucp/ftp/ftpcontent.cxx +++ b/ucb/source/ucp/ftp/ftpcontent.cxx @@ -720,7 +720,7 @@ class InsertData public: - InsertData(const Reference<XInputStream>& xInputStream) + explicit InsertData(const Reference<XInputStream>& xInputStream) : m_xInputStream(xInputStream) { } virtual ~InsertData() {} diff --git a/ucb/source/ucp/ftp/ftpcontentidentifier.hxx b/ucb/source/ucp/ftp/ftpcontentidentifier.hxx index e08eae7b957b..38dabce6e06a 100644 --- a/ucb/source/ucp/ftp/ftpcontentidentifier.hxx +++ b/ucb/source/ucp/ftp/ftpcontentidentifier.hxx @@ -46,7 +46,7 @@ namespace ftp { { public: - FTPContentIdentifier(const OUString& ident); + explicit FTPContentIdentifier(const OUString& ident); virtual ~FTPContentIdentifier(); diff --git a/ucb/source/ucp/ftp/ftpcontentprovider.hxx b/ucb/source/ucp/ftp/ftpcontentprovider.hxx index d700e855a049..4f9652464cfa 100644 --- a/ucb/source/ucp/ftp/ftpcontentprovider.hxx +++ b/ucb/source/ucp/ftp/ftpcontentprovider.hxx @@ -47,7 +47,7 @@ namespace ftp { public: - FTPContentProvider( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); + explicit FTPContentProvider( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); virtual ~FTPContentProvider(); diff --git a/ucb/source/ucp/ftp/ftpresultsetbase.cxx b/ucb/source/ucp/ftp/ftpresultsetbase.cxx index ba9f331c7150..2f35a7e569f9 100644 --- a/ucb/source/ucp/ftp/ftpresultsetbase.cxx +++ b/ucb/source/ucp/ftp/ftpresultsetbase.cxx @@ -437,7 +437,7 @@ class XPropertySetInfoImpl { public: - XPropertySetInfoImpl( const uno::Sequence< beans::Property >& aSeq ) + explicit XPropertySetInfoImpl( const uno::Sequence< beans::Property >& aSeq ) : m_aSeq( aSeq ) { } diff --git a/ucb/source/ucp/ftp/ftpstrcont.hxx b/ucb/source/ucp/ftp/ftpstrcont.hxx index 6d9e581d24a0..00efa783f7da 100644 --- a/ucb/source/ucp/ftp/ftpstrcont.hxx +++ b/ucb/source/ucp/ftp/ftpstrcont.hxx @@ -41,7 +41,7 @@ namespace ftp { { public: - FTPOutputStreamContainer(const com::sun::star::uno::Reference< + explicit FTPOutputStreamContainer(const com::sun::star::uno::Reference< com::sun::star::io::XOutputStream>& out); virtual ~FTPOutputStreamContainer() {} @@ -61,7 +61,7 @@ namespace ftp { { public: - FTPInputStreamContainer(FTPInputStream* out); + explicit FTPInputStreamContainer(FTPInputStream* out); virtual ~FTPInputStreamContainer() {} diff --git a/ucb/source/ucp/ftp/ftpurl.hxx b/ucb/source/ucp/ftp/ftpurl.hxx index ecb88416a0ea..f51ace6bfc74 100644 --- a/ucb/source/ucp/ftp/ftpurl.hxx +++ b/ucb/source/ucp/ftp/ftpurl.hxx @@ -57,7 +57,7 @@ namespace ftp { { public: - curl_exception(sal_Int32 err) + explicit curl_exception(sal_Int32 err) : n_err(err) { } sal_Int32 code() const { return n_err; } diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx index 96c7c4b96f2f..b39fadae747d 100644 --- a/ucb/source/ucp/gio/gio_content.cxx +++ b/ucb/source/ucp/gio/gio_content.cxx @@ -327,7 +327,7 @@ class MountOperation GError *mpError; static void Completed(GObject *source, GAsyncResult *res, gpointer user_data); public: - MountOperation(const uno::Reference< ucb::XCommandEnvironment >& xEnv); + explicit MountOperation(const uno::Reference< ucb::XCommandEnvironment >& xEnv); ~MountOperation(); GError *Mount(GFile *pFile); }; diff --git a/ucb/source/ucp/gio/gio_datasupplier.hxx b/ucb/source/ucp/gio/gio_datasupplier.hxx index c610ed1996c1..15c6142c4c1e 100644 --- a/ucb/source/ucp/gio/gio_datasupplier.hxx +++ b/ucb/source/ucp/gio/gio_datasupplier.hxx @@ -37,7 +37,7 @@ struct ResultListEntry com::sun::star::uno::Reference< com::sun::star::sdbc::XRow > xRow; GFileInfo *pInfo; - ResultListEntry( GFileInfo *pInInfo ) : pInfo(pInInfo) + explicit ResultListEntry( GFileInfo *pInInfo ) : pInfo(pInInfo) { g_object_ref( pInfo ); } diff --git a/ucb/source/ucp/gio/gio_inputstream.hxx b/ucb/source/ucp/gio/gio_inputstream.hxx index bb821f2e004e..a37c2b8b3021 100644 --- a/ucb/source/ucp/gio/gio_inputstream.hxx +++ b/ucb/source/ucp/gio/gio_inputstream.hxx @@ -41,7 +41,7 @@ private: GFileInputStream *mpStream; public: - InputStream ( GFileInputStream *pStream ); + explicit InputStream ( GFileInputStream *pStream ); virtual ~InputStream(); // XInterface diff --git a/ucb/source/ucp/gio/gio_outputstream.hxx b/ucb/source/ucp/gio/gio_outputstream.hxx index c5ff0a6fdf6a..caf8a5fd096d 100644 --- a/ucb/source/ucp/gio/gio_outputstream.hxx +++ b/ucb/source/ucp/gio/gio_outputstream.hxx @@ -41,7 +41,7 @@ private: GFileOutputStream *mpStream; public: - OutputStream ( GFileOutputStream *pStream ); + explicit OutputStream ( GFileOutputStream *pStream ); virtual ~OutputStream(); // XInterface diff --git a/ucb/source/ucp/gio/gio_provider.hxx b/ucb/source/ucp/gio/gio_provider.hxx index 1d6a0932b932..848271bcdb76 100644 --- a/ucb/source/ucp/gio/gio_provider.hxx +++ b/ucb/source/ucp/gio/gio_provider.hxx @@ -30,7 +30,7 @@ namespace gio class ContentProvider : public ::ucbhelper::ContentProviderImplHelper { public: - ContentProvider( const ::com::sun::star::uno::Reference< + explicit ContentProvider( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); virtual ~ContentProvider(); diff --git a/ucb/source/ucp/gio/gio_seekable.hxx b/ucb/source/ucp/gio/gio_seekable.hxx index ea93781c05f2..7b0eddb7b87d 100644 --- a/ucb/source/ucp/gio/gio_seekable.hxx +++ b/ucb/source/ucp/gio/gio_seekable.hxx @@ -39,7 +39,7 @@ class Seekable : public ::com::sun::star::io::XTruncate, private: GSeekable *mpStream; public: - Seekable( GSeekable *pStream ); + explicit Seekable( GSeekable *pStream ); virtual ~Seekable(); // XInterface 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; diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.hxx b/ucb/source/ucp/hierarchy/hierarchycontent.hxx index 12d60d9c8759..23f5c1ca7467 100644 --- a/ucb/source/ucp/hierarchy/hierarchycontent.hxx +++ b/ucb/source/ucp/hierarchy/hierarchycontent.hxx @@ -59,13 +59,13 @@ class HierarchyContentProperties public: HierarchyContentProperties() {}; - HierarchyContentProperties( const HierarchyEntryData::Type & rType ) + explicit HierarchyContentProperties( const HierarchyEntryData::Type & rType ) : m_aData( rType ), m_aContentType( rType == HierarchyEntryData::FOLDER ? OUString( HIERARCHY_FOLDER_CONTENT_TYPE ) : OUString( HIERARCHY_LINK_CONTENT_TYPE ) ) {} - HierarchyContentProperties( const HierarchyEntryData & rData ) + explicit HierarchyContentProperties( const HierarchyEntryData & rData ) : m_aData( rData ), m_aContentType( rData.getType() == HierarchyEntryData::FOLDER ? OUString( HIERARCHY_FOLDER_CONTENT_TYPE ) diff --git a/ucb/source/ucp/hierarchy/hierarchydata.hxx b/ucb/source/ucp/hierarchy/hierarchydata.hxx index f6e00e42a867..15fe58df6d3f 100644 --- a/ucb/source/ucp/hierarchy/hierarchydata.hxx +++ b/ucb/source/ucp/hierarchy/hierarchydata.hxx @@ -45,7 +45,7 @@ public: enum Type { NONE, LINK, FOLDER }; HierarchyEntryData() : m_aType( NONE ) {} - HierarchyEntryData( const Type & rType ) : m_aType( rType ) {} + explicit HierarchyEntryData( const Type & rType ) : m_aType( rType ) {} const OUString & getName() const { return m_aName; } void setName( const OUString & rName ) { m_aName = rName; } diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.hxx b/ucb/source/ucp/hierarchy/hierarchydatasource.hxx index 4a695a709913..1ec383784583 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasource.hxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasource.hxx @@ -47,7 +47,7 @@ class HierarchyDataSource : public cppu::OWeakObject, cppu::OInterfaceContainerHelper * m_pDisposeEventListeners; public: - HierarchyDataSource( const css::uno::Reference< css::uno::XComponentContext > & rxContext ); + explicit HierarchyDataSource( const css::uno::Reference< css::uno::XComponentContext > & rxContext ); virtual ~HierarchyDataSource(); // XInterface diff --git a/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx b/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx index 38bd19ac55fb..dd3e1bfe14b6 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx @@ -50,7 +50,7 @@ struct ResultListEntry uno::Reference< sdbc::XRow > xRow; HierarchyEntryData aData; - ResultListEntry( const HierarchyEntryData& rEntry ) : aData( rEntry ) {} + explicit ResultListEntry( const HierarchyEntryData& rEntry ) : aData( rEntry ) {} }; diff --git a/ucb/source/ucp/hierarchy/hierarchyprovider.hxx b/ucb/source/ucp/hierarchy/hierarchyprovider.hxx index dec90befbe79..c33795e4457c 100644 --- a/ucb/source/ucp/hierarchy/hierarchyprovider.hxx +++ b/ucb/source/ucp/hierarchy/hierarchyprovider.hxx @@ -76,7 +76,7 @@ class HierarchyContentProvider : public ::ucbhelper::ContentProviderImplHelper, com::sun::star::util::XOfficeInstallationDirectories > m_xOfficeInstDirs; public: - HierarchyContentProvider( + explicit HierarchyContentProvider( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); virtual ~HierarchyContentProvider(); diff --git a/ucb/source/ucp/package/pkgcontent.hxx b/ucb/source/ucp/package/pkgcontent.hxx index 9e03fdbc409b..b784cb63e190 100644 --- a/ucb/source/ucp/package/pkgcontent.hxx +++ b/ucb/source/ucp/package/pkgcontent.hxx @@ -86,7 +86,7 @@ struct ContentProperties bCompressed( true ), bEncrypted( false ), bHasEncryptedEntries( false ) {} - ContentProperties( const OUString& rContentType ); + explicit ContentProperties( const OUString& rContentType ); com::sun::star::uno::Sequence< com::sun::star::ucb::ContentInfo > getCreatableContentsInfo( PackageUri const & rUri ) const; diff --git a/ucb/source/ucp/package/pkgdatasupplier.cxx b/ucb/source/ucp/package/pkgdatasupplier.cxx index 9bb4509e91c9..fa02008bd1b3 100644 --- a/ucb/source/ucp/package/pkgdatasupplier.cxx +++ b/ucb/source/ucp/package/pkgdatasupplier.cxx @@ -55,7 +55,7 @@ struct ResultListEntry uno::Reference< ucb::XContent > xContent; uno::Reference< sdbc::XRow > xRow; - ResultListEntry( const OUString& rURL ) : aURL( rURL ) {} + explicit ResultListEntry( const OUString& rURL ) : aURL( rURL ) {} }; diff --git a/ucb/source/ucp/package/pkgprovider.hxx b/ucb/source/ucp/package/pkgprovider.hxx index 6fc6a70ba5ea..1f92241ca839 100644 --- a/ucb/source/ucp/package/pkgprovider.hxx +++ b/ucb/source/ucp/package/pkgprovider.hxx @@ -55,7 +55,7 @@ class ContentProvider : public ::ucbhelper::ContentProviderImplHelper Packages* m_pPackages; public: - ContentProvider( const ::com::sun::star::uno::Reference< + explicit ContentProvider( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); virtual ~ContentProvider(); diff --git a/ucb/source/ucp/package/pkguri.hxx b/ucb/source/ucp/package/pkguri.hxx index edd6fee303ee..b9e674a5094e 100644 --- a/ucb/source/ucp/package/pkguri.hxx +++ b/ucb/source/ucp/package/pkguri.hxx @@ -48,7 +48,7 @@ private: public: PackageUri() : m_bValid( false ) {} - PackageUri( const OUString & rPackageUri ) + explicit PackageUri( const OUString & rPackageUri ) : m_aUri( rPackageUri ), m_bValid( false ) {} bool isValid() const diff --git a/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx b/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx index 2869de6c6e51..ecf725c00f32 100644 --- a/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx +++ b/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx @@ -51,7 +51,7 @@ struct ResultListEntry uno::Reference< ucb::XContent > xContent; uno::Reference< sdbc::XRow > xRow; - ResultListEntry( const OUString& rURL ) : aURL( rURL ) {} + explicit ResultListEntry( const OUString& rURL ) : aURL( rURL ) {} }; diff --git a/ucb/source/ucp/tdoc/tdoc_docmgr.hxx b/ucb/source/ucp/tdoc/tdoc_docmgr.hxx index 9d445ec12c55..544ed99c8ed1 100644 --- a/ucb/source/ucp/tdoc/tdoc_docmgr.hxx +++ b/ucb/source/ucp/tdoc/tdoc_docmgr.hxx @@ -90,7 +90,7 @@ namespace tdoc_ucp { { public: - OfficeDocumentsCloseListener( OfficeDocumentsManager * pMgr ) + explicit OfficeDocumentsCloseListener( OfficeDocumentsManager * pMgr ) : m_pManager( pMgr ) {} // util::XCloseListener diff --git a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.hxx b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.hxx index 633f0805036f..0712eebb79e9 100644 --- a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.hxx +++ b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.hxx @@ -34,7 +34,7 @@ class DocumentContentFactory : com::sun::star::lang::XServiceInfo > { public: - DocumentContentFactory( const com::sun::star::uno::Reference< + explicit DocumentContentFactory( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rXSMgr ); virtual ~DocumentContentFactory(); diff --git a/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx b/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx index 96838feaced1..9fb89cd3d585 100644 --- a/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx +++ b/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx @@ -40,8 +40,8 @@ namespace tdoc_ucp public task::XInteractionPassword { public: - InteractionSupplyPassword( ucbhelper::InteractionRequest * pRequest ) - : InteractionContinuation( pRequest ) {} + explicit InteractionSupplyPassword( ucbhelper::InteractionRequest * pRequest ) + : InteractionContinuation( pRequest ) {} // XInterface virtual uno::Any SAL_CALL queryInterface( const uno::Type & rType ) diff --git a/ucb/source/ucp/tdoc/tdoc_provider.hxx b/ucb/source/ucp/tdoc/tdoc_provider.hxx index e8855497c356..c2a212e8fe23 100644 --- a/ucb/source/ucp/tdoc/tdoc_provider.hxx +++ b/ucb/source/ucp/tdoc/tdoc_provider.hxx @@ -62,7 +62,7 @@ class ContentProvider : public OfficeDocumentsEventListener { public: - ContentProvider( const com::sun::star::uno::Reference< + explicit ContentProvider( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); virtual ~ContentProvider(); diff --git a/ucb/source/ucp/tdoc/tdoc_stgelems.hxx b/ucb/source/ucp/tdoc/tdoc_stgelems.hxx index 8be3935052d8..3bb99a64cf87 100644 --- a/ucb/source/ucp/tdoc/tdoc_stgelems.hxx +++ b/ucb/source/ucp/tdoc/tdoc_stgelems.hxx @@ -283,7 +283,7 @@ public: com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; private: - Storage( const rtl::Reference< Storage > & rFactory ); // n.i. + explicit Storage( const rtl::Reference< Storage > & rFactory ); // n.i. rtl::Reference< StorageElementFactory > m_xFactory; com::sun::star::uno::Reference< diff --git a/ucb/source/ucp/webdav-neon/DAVException.hxx b/ucb/source/ucp/webdav-neon/DAVException.hxx index a9e09b00bfc4..b2f878eb9fef 100644 --- a/ucb/source/ucp/webdav-neon/DAVException.hxx +++ b/ucb/source/ucp/webdav-neon/DAVException.hxx @@ -145,7 +145,7 @@ class DAVException : public std::exception sal_uInt16 mStatusCode; public: - DAVException( ExceptionCode inExceptionCode ) : + explicit DAVException( ExceptionCode inExceptionCode ) : mExceptionCode( inExceptionCode ), mStatusCode( SC_NONE ) {}; DAVException( ExceptionCode inExceptionCode, const OUString & rData ) : diff --git a/ucb/source/ucp/webdav-neon/DAVResource.hxx b/ucb/source/ucp/webdav-neon/DAVResource.hxx index 98e3488a50a8..20c0e6afa31e 100644 --- a/ucb/source/ucp/webdav-neon/DAVResource.hxx +++ b/ucb/source/ucp/webdav-neon/DAVResource.hxx @@ -53,7 +53,7 @@ struct DAVResource std::vector< DAVPropertyValue > properties; DAVResource() {} - DAVResource( const OUString & inUri ) : uri( inUri ) {} + explicit DAVResource( const OUString & inUri ) : uri( inUri ) {} }; struct DAVResourceInfo @@ -61,7 +61,7 @@ struct DAVResourceInfo OUString uri; std::vector < OUString > properties; - DAVResourceInfo( const OUString & inUri ) : uri( inUri ) {} + explicit DAVResourceInfo( const OUString & inUri ) : uri( inUri ) {} }; } // namespace webdav_ucp diff --git a/ucb/source/ucp/webdav-neon/DAVSession.hxx b/ucb/source/ucp/webdav-neon/DAVSession.hxx index c75ce7ecf98a..d700b1bcc8ec 100644 --- a/ucb/source/ucp/webdav-neon/DAVSession.hxx +++ b/ucb/source/ucp/webdav-neon/DAVSession.hxx @@ -200,7 +200,7 @@ public: protected: rtl::Reference< DAVSessionFactory > m_xFactory; - DAVSession( rtl::Reference< DAVSessionFactory > const & rFactory ) + explicit DAVSession( rtl::Reference< DAVSessionFactory > const & rFactory ) : m_xFactory( rFactory ), m_nRefCount( 0 ) {} virtual ~DAVSession() {} diff --git a/ucb/source/ucp/webdav-neon/NeonLockStore.cxx b/ucb/source/ucp/webdav-neon/NeonLockStore.cxx index 5d7d35f904f6..df90a253cef7 100644 --- a/ucb/source/ucp/webdav-neon/NeonLockStore.cxx +++ b/ucb/source/ucp/webdav-neon/NeonLockStore.cxx @@ -47,9 +47,11 @@ class TickerThread : public salhelper::Thread public: - TickerThread( NeonLockStore & rLockStore ) - : Thread( "NeonTickerThread" ), m_bFinish( false ), - m_rLockStore( rLockStore ) {} + explicit TickerThread( NeonLockStore & rLockStore ) + : Thread( "NeonTickerThread" ), m_bFinish( false ) + , m_rLockStore( rLockStore ) + { + } void finish() { m_bFinish = true; } diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx index 6f1f81a82625..535abde4d134 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.cxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx @@ -164,11 +164,11 @@ struct NeonRequestContext const std::vector< OUString > * pHeaderNames; DAVResource * pResource; - NeonRequestContext( uno::Reference< io::XOutputStream > & xOutStrm ) + explicit NeonRequestContext( uno::Reference< io::XOutputStream > & xOutStrm ) : xOutputStream( xOutStrm ), xInputStream( 0 ), pHeaderNames( 0 ), pResource( 0 ) {} - NeonRequestContext( const rtl::Reference< NeonInputStream > & xInStrm ) + explicit NeonRequestContext( const rtl::Reference< NeonInputStream > & xInStrm ) : xOutputStream( 0 ), xInputStream( xInStrm ), pHeaderNames( 0 ), pResource( 0 ) {} diff --git a/ucb/source/ucp/webdav-neon/NeonUri.hxx b/ucb/source/ucp/webdav-neon/NeonUri.hxx index 214a56124504..9fedb88f80bc 100644 --- a/ucb/source/ucp/webdav-neon/NeonUri.hxx +++ b/ucb/source/ucp/webdav-neon/NeonUri.hxx @@ -55,8 +55,8 @@ class NeonUri void calculateURI (); public: - NeonUri( const OUString & inUri ) throw ( DAVException ); - NeonUri( const ne_uri * inUri ) throw ( DAVException ); + explicit NeonUri( const OUString & inUri ) throw ( DAVException ); + explicit NeonUri( const ne_uri * inUri ) throw ( DAVException ); ~NeonUri( ); bool operator== ( const NeonUri & rOther ) const; diff --git a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx index a01b1a0436d2..8f718a015b6c 100644 --- a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx +++ b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx @@ -64,7 +64,7 @@ struct ResultListEntry uno::Reference< sdbc::XRow > xRow; boost::shared_ptr<ContentProperties> const pData; - ResultListEntry(boost::shared_ptr<ContentProperties> const& pEntry) + explicit ResultListEntry(boost::shared_ptr<ContentProperties> const& pEntry) : pData(pEntry) {} }; diff --git a/ucb/source/ucp/webdav-neon/webdavprovider.hxx b/ucb/source/ucp/webdav-neon/webdavprovider.hxx index 5da542d445e4..66eea5d59863 100644 --- a/ucb/source/ucp/webdav-neon/webdavprovider.hxx +++ b/ucb/source/ucp/webdav-neon/webdavprovider.hxx @@ -84,7 +84,7 @@ class ContentProvider : public ::ucbhelper::ContentProviderImplHelper PropertyMap * m_pProps; public: - ContentProvider( const ::com::sun::star::uno::Reference< + explicit ContentProvider( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); virtual ~ContentProvider(); diff --git a/ucb/source/ucp/webdav/DAVException.hxx b/ucb/source/ucp/webdav/DAVException.hxx index c4f241ed65c0..6aac85f452cf 100644 --- a/ucb/source/ucp/webdav/DAVException.hxx +++ b/ucb/source/ucp/webdav/DAVException.hxx @@ -139,7 +139,7 @@ class DAVException : public std::exception sal_uInt16 mStatusCode; public: - DAVException( ExceptionCode inExceptionCode ) + explicit DAVException( ExceptionCode inExceptionCode ) : mExceptionCode( inExceptionCode ) , mData() , mStatusCode( SC_NONE ) diff --git a/ucb/source/ucp/webdav/DAVResource.hxx b/ucb/source/ucp/webdav/DAVResource.hxx index 86392044059b..77885b0bf087 100644 --- a/ucb/source/ucp/webdav/DAVResource.hxx +++ b/ucb/source/ucp/webdav/DAVResource.hxx @@ -45,7 +45,7 @@ struct DAVResource std::vector< DAVPropertyValue > properties; DAVResource() {} - DAVResource( const OUString & inUri ) : uri( inUri ) {} + explicit DAVResource( const OUString & inUri ) : uri( inUri ) {} }; struct DAVResourceInfo @@ -53,7 +53,7 @@ struct DAVResourceInfo OUString uri; std::vector < OUString > properties; - DAVResourceInfo( const OUString & inUri ) : uri( inUri ) {} + explicit DAVResourceInfo( const OUString & inUri ) : uri( inUri ) {} }; } // namespace http_dav_ucp diff --git a/ucb/source/ucp/webdav/DAVSession.hxx b/ucb/source/ucp/webdav/DAVSession.hxx index 45a13838edca..0647a544a5c8 100644 --- a/ucb/source/ucp/webdav/DAVSession.hxx +++ b/ucb/source/ucp/webdav/DAVSession.hxx @@ -193,8 +193,8 @@ public: protected: rtl::Reference< DAVSessionFactory > m_xFactory; - DAVSession( rtl::Reference< DAVSessionFactory > const & rFactory ) - : m_xFactory( rFactory ), m_nRefCount( 0 ) {} + explicit DAVSession( rtl::Reference< DAVSessionFactory > const & rFactory ) + : m_xFactory( rFactory ), m_nRefCount( 0 ) {} virtual ~DAVSession() {} diff --git a/ucb/source/ucp/webdav/SerfLockStore.cxx b/ucb/source/ucp/webdav/SerfLockStore.cxx index 5314cee3cfa9..daee2d2b7ace 100644 --- a/ucb/source/ucp/webdav/SerfLockStore.cxx +++ b/ucb/source/ucp/webdav/SerfLockStore.cxx @@ -34,8 +34,8 @@ class TickerThread : public osl::Thread public: - TickerThread( SerfLockStore & rLockStore ) - : osl::Thread(), m_bFinish( false ), m_rLockStore( rLockStore ) {} + explicit TickerThread( SerfLockStore & rLockStore ) + : osl::Thread(), m_bFinish( false ), m_rLockStore( rLockStore ) {} void finish() { m_bFinish = true; } diff --git a/ucb/source/ucp/webdav/SerfUri.hxx b/ucb/source/ucp/webdav/SerfUri.hxx index dc88d74cf816..b7a145405a39 100644 --- a/ucb/source/ucp/webdav/SerfUri.hxx +++ b/ucb/source/ucp/webdav/SerfUri.hxx @@ -50,8 +50,8 @@ class SerfUri void calculateURI (); public: - SerfUri( const OUString & inUri ) throw ( DAVException ); - SerfUri( const apr_uri_t * inUri ) throw ( DAVException ); + explicit SerfUri( const OUString & inUri ) throw ( DAVException ); + explicit SerfUri( const apr_uri_t * inUri ) throw ( DAVException ); ~SerfUri( ); bool operator== ( const SerfUri & rOther ) const; diff --git a/ucb/source/ucp/webdav/webdavdatasupplier.cxx b/ucb/source/ucp/webdav/webdavdatasupplier.cxx index 1114f4def6a9..89f50cb1471d 100644 --- a/ucb/source/ucp/webdav/webdavdatasupplier.cxx +++ b/ucb/source/ucp/webdav/webdavdatasupplier.cxx @@ -47,7 +47,7 @@ struct ResultListEntry uno::Reference< sdbc::XRow > xRow; const ContentProperties* pData; - ResultListEntry( const ContentProperties* pEntry ) : pData( pEntry ) {}; + explicit ResultListEntry( const ContentProperties* pEntry ) : pData( pEntry ) {} ~ResultListEntry() { delete pData; } }; diff --git a/ucb/source/ucp/webdav/webdavprovider.hxx b/ucb/source/ucp/webdav/webdavprovider.hxx index 78cfa6cbd0e9..d0c40e06c8da 100644 --- a/ucb/source/ucp/webdav/webdavprovider.hxx +++ b/ucb/source/ucp/webdav/webdavprovider.hxx @@ -72,7 +72,7 @@ class ContentProvider : public ::ucbhelper::ContentProviderImplHelper PropertyMap * m_pProps; public: - ContentProvider( const ::com::sun::star::uno::Reference< + explicit ContentProvider( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext ); virtual ~ContentProvider(); diff --git a/ucb/source/ucp/webdav/webdavresponseparser.cxx b/ucb/source/ucp/webdav/webdavresponseparser.cxx index ca485d1004a2..549b19dcaa06 100644 --- a/ucb/source/ucp/webdav/webdavresponseparser.cxx +++ b/ucb/source/ucp/webdav/webdavresponseparser.cxx @@ -352,7 +352,7 @@ namespace } public: - WebDAVResponseParser(WebDAVResponseParserMode eWebDAVResponseParserMode); + explicit WebDAVResponseParser(WebDAVResponseParserMode eWebDAVResponseParserMode); virtual ~WebDAVResponseParser(); // Methods XDocumentHandler |