summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/source/inet/inetstrm.cxx6
-rw-r--r--tubes/source/contacts.cxx2
-rw-r--r--ucb/source/cacher/cachedcontentresultset.cxx2
-rw-r--r--ucb/source/core/FileAccess.cxx2
-rw-r--r--ucb/source/core/cmdenv.hxx2
-rw-r--r--ucb/source/core/identify.hxx2
-rw-r--r--ucb/source/core/provprox.hxx2
-rw-r--r--ucb/source/core/ucb.hxx2
-rw-r--r--ucb/source/core/ucbcmds.cxx2
-rw-r--r--ucb/source/core/ucbprops.hxx2
-rw-r--r--ucb/source/core/ucbstore.cxx12
-rw-r--r--ucb/source/core/ucbstore.hxx2
-rw-r--r--ucb/source/ucp/cmis/cmis_datasupplier.hxx2
-rw-r--r--ucb/source/ucp/cmis/cmis_provider.hxx2
-rw-r--r--ucb/source/ucp/cmis/cmis_url.hxx2
-rw-r--r--ucb/source/ucp/expand/ucpexpand.cxx2
-rw-r--r--ucb/source/ucp/ext/ucpext_provider.hxx2
-rw-r--r--ucb/source/ucp/file/bc.cxx2
-rw-r--r--ucb/source/ucp/file/filcmd.hxx2
-rw-r--r--ucb/source/ucp/file/filrec.hxx2
-rw-r--r--ucb/source/ucp/file/filtask.hxx2
-rw-r--r--ucb/source/ucp/file/prov.hxx2
-rw-r--r--ucb/source/ucp/file/shell.hxx2
-rw-r--r--ucb/source/ucp/ftp/ftpcontent.cxx2
-rw-r--r--ucb/source/ucp/ftp/ftpcontentidentifier.hxx2
-rw-r--r--ucb/source/ucp/ftp/ftpcontentprovider.hxx2
-rw-r--r--ucb/source/ucp/ftp/ftpresultsetbase.cxx2
-rw-r--r--ucb/source/ucp/ftp/ftpstrcont.hxx4
-rw-r--r--ucb/source/ucp/ftp/ftpurl.hxx2
-rw-r--r--ucb/source/ucp/gio/gio_content.cxx2
-rw-r--r--ucb/source/ucp/gio/gio_datasupplier.hxx2
-rw-r--r--ucb/source/ucp/gio/gio_inputstream.hxx2
-rw-r--r--ucb/source/ucp/gio/gio_outputstream.hxx2
-rw-r--r--ucb/source/ucp/gio/gio_provider.hxx2
-rw-r--r--ucb/source/ucp/gio/gio_seekable.hxx2
-rw-r--r--ucb/source/ucp/gvfs/gvfs_content.hxx2
-rw-r--r--ucb/source/ucp/gvfs/gvfs_directory.cxx2
-rw-r--r--ucb/source/ucp/gvfs/gvfs_provider.cxx5
-rw-r--r--ucb/source/ucp/hierarchy/hierarchycontent.hxx4
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydata.hxx2
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydatasource.hxx2
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx2
-rw-r--r--ucb/source/ucp/hierarchy/hierarchyprovider.hxx2
-rw-r--r--ucb/source/ucp/package/pkgcontent.hxx2
-rw-r--r--ucb/source/ucp/package/pkgdatasupplier.cxx2
-rw-r--r--ucb/source/ucp/package/pkgprovider.hxx2
-rw-r--r--ucb/source/ucp/package/pkguri.hxx2
-rw-r--r--ucb/source/ucp/tdoc/tdoc_datasupplier.cxx2
-rw-r--r--ucb/source/ucp/tdoc/tdoc_docmgr.hxx2
-rw-r--r--ucb/source/ucp/tdoc/tdoc_documentcontentfactory.hxx2
-rw-r--r--ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx4
-rw-r--r--ucb/source/ucp/tdoc/tdoc_provider.hxx2
-rw-r--r--ucb/source/ucp/tdoc/tdoc_stgelems.hxx2
-rw-r--r--ucb/source/ucp/webdav-neon/DAVException.hxx2
-rw-r--r--ucb/source/ucp/webdav-neon/DAVResource.hxx4
-rw-r--r--ucb/source/ucp/webdav-neon/DAVSession.hxx2
-rw-r--r--ucb/source/ucp/webdav-neon/NeonLockStore.cxx8
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx4
-rw-r--r--ucb/source/ucp/webdav-neon/NeonUri.hxx4
-rw-r--r--ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx2
-rw-r--r--ucb/source/ucp/webdav-neon/webdavprovider.hxx2
-rw-r--r--ucb/source/ucp/webdav/DAVException.hxx2
-rw-r--r--ucb/source/ucp/webdav/DAVResource.hxx4
-rw-r--r--ucb/source/ucp/webdav/DAVSession.hxx4
-rw-r--r--ucb/source/ucp/webdav/SerfLockStore.cxx4
-rw-r--r--ucb/source/ucp/webdav/SerfUri.hxx4
-rw-r--r--ucb/source/ucp/webdav/webdavdatasupplier.cxx2
-rw-r--r--ucb/source/ucp/webdav/webdavprovider.hxx2
-rw-r--r--ucb/source/ucp/webdav/webdavresponseparser.cxx2
-rw-r--r--ucbhelper/source/client/content.cxx4
-rw-r--r--ucbhelper/source/client/proxydecider.cxx4
-rw-r--r--ucbhelper/source/provider/contenthelper.cxx2
-rw-r--r--ucbhelper/source/provider/contentidentifier.cxx2
-rw-r--r--ucbhelper/source/provider/interactionrequest.cxx9
-rw-r--r--ucbhelper/source/provider/resultset.cxx4
-rw-r--r--ucbhelper/source/provider/resultsetmetadata.cxx4
-rw-r--r--ucbhelper/source/provider/simplenameclashresolverequest.cxx2
-rw-r--r--unoidl/source/sourceprovider-scanner.hxx4
-rw-r--r--unoidl/source/unoidl-check.cxx2
-rw-r--r--unotools/source/config/configitem.cxx16
-rw-r--r--unotools/source/config/configvaluecontainer.cxx2
-rw-r--r--unotools/source/config/fltrcfg.cxx6
-rw-r--r--unotools/source/config/useroptions.cxx2
-rw-r--r--unotools/source/config/viewoptions.cxx2
-rw-r--r--unotools/source/misc/closeveto.cxx2
-rw-r--r--unotools/source/misc/componentresmodule.cxx2
-rw-r--r--unotools/source/misc/fontcvt.cxx2
-rw-r--r--unotools/source/misc/sharedunocomponent.cxx2
-rw-r--r--unotools/source/ucbhelper/XTempFile.hxx2
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx24
-rw-r--r--unoxml/source/dom/document.hxx2
-rw-r--r--unoxml/source/dom/documentbuilder.hxx2
-rw-r--r--unoxml/source/dom/elementlist.cxx2
-rw-r--r--unoxml/source/dom/saxbuilder.hxx2
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx6
-rw-r--r--unoxml/source/xpath/xpathapi.hxx2
-rw-r--r--uui/source/fltdlg.cxx2
-rw-r--r--uui/source/fltdlg.hxx2
-rw-r--r--uui/source/iahndl.cxx2
-rw-r--r--uui/source/iahndl.hxx10
-rw-r--r--uui/source/interactionhandler.cxx2
-rw-r--r--uui/source/passwordcontainer.hxx2
-rw-r--r--uui/source/requeststringresolver.hxx2
103 files changed, 156 insertions, 162 deletions
diff --git a/tools/source/inet/inetstrm.cxx b/tools/source/inet/inetstrm.cxx
index 80d68a07817f..4342c673ae16 100644
--- a/tools/source/inet/inetstrm.cxx
+++ b/tools/source/inet/inetstrm.cxx
@@ -52,7 +52,7 @@ class INetMessageEncodeQPStream_Impl : public INetMessageIStream
virtual int GetMsgLine(sal_Char* pData, sal_uIntPtr nSize) SAL_OVERRIDE;
public:
- INetMessageEncodeQPStream_Impl(sal_uIntPtr nMsgBufferSize = 1024);
+ explicit INetMessageEncodeQPStream_Impl(sal_uIntPtr nMsgBufferSize = 1024);
virtual ~INetMessageEncodeQPStream_Impl();
};
@@ -92,7 +92,7 @@ class INetMessageEncode64Stream_Impl : public INetMessageIStream
virtual int GetMsgLine(sal_Char* pData, sal_uIntPtr nSize) SAL_OVERRIDE;
public:
- INetMessageEncode64Stream_Impl(sal_uIntPtr nMsgBufferSize = 2048);
+ explicit INetMessageEncode64Stream_Impl(sal_uIntPtr nMsgBufferSize = 2048);
virtual ~INetMessageEncode64Stream_Impl();
};
@@ -109,7 +109,7 @@ class INetMessageDecode64Stream_Impl : public INetMessageOStream
virtual int PutMsgLine(const sal_Char* pData, sal_uIntPtr nSize) SAL_OVERRIDE;
public:
- INetMessageDecode64Stream_Impl(sal_uIntPtr nMsgBufferSize = 128);
+ explicit INetMessageDecode64Stream_Impl(sal_uIntPtr nMsgBufferSize = 128);
virtual ~INetMessageDecode64Stream_Impl();
};
diff --git a/tubes/source/contacts.cxx b/tubes/source/contacts.cxx
index df9900565dd8..08388805352a 100644
--- a/tubes/source/contacts.cxx
+++ b/tubes/source/contacts.cxx
@@ -106,7 +106,7 @@ class TubeContacts : public ModelessDialog
}
public:
- TubeContacts( Collaboration* pCollaboration ) :
+ explicit TubeContacts( Collaboration* pCollaboration ) :
ModelessDialog( NULL, "ContactsDialog", "tubes/ui/contacts.ui" ),
mpCollaboration( pCollaboration )
{
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx
index dfa021af6e76..97e48325bfcc 100644
--- a/ucb/source/cacher/cachedcontentresultset.cxx
+++ b/ucb/source/cacher/cachedcontentresultset.cxx
@@ -407,7 +407,7 @@ private:
impl_isMyPropertyName( const OUString& rName );
public:
- CCRS_PropertySetInfo( Reference<
+ explicit CCRS_PropertySetInfo( Reference<
XPropertySetInfo > xPropertySetInfoOrigin );
virtual ~CCRS_PropertySetInfo();
diff --git a/ucb/source/core/FileAccess.cxx b/ucb/source/core/FileAccess.cxx
index 543f00a71621..292939a6a627 100644
--- a/ucb/source/core/FileAccess.cxx
+++ b/ucb/source/core/FileAccess.cxx
@@ -94,7 +94,7 @@ class OFileAccess : public FileAccessHelper
throw ( Exception );
public:
- OFileAccess( const Reference< XComponentContext > & xContext )
+ explicit OFileAccess( const Reference< XComponentContext > & xContext )
: m_xContext( xContext), mpEnvironment( NULL ) {}
// Methods
virtual void SAL_CALL copy( const OUString& SourceURL, const OUString& DestURL ) throw(::com::sun::star::ucb::CommandAbortedException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/ucb/source/core/cmdenv.hxx b/ucb/source/core/cmdenv.hxx
index 4bdcca132a77..b9234cf381a7 100644
--- a/ucb/source/core/cmdenv.hxx
+++ b/ucb/source/core/cmdenv.hxx
@@ -40,7 +40,7 @@ class UcbCommandEnvironment :
com::sun::star::ucb::XProgressHandler > m_xPH;
public:
- UcbCommandEnvironment(
+ explicit UcbCommandEnvironment(
const com::sun::star::uno::Reference<
com::sun::star::lang::XMultiServiceFactory >& rXSMgr );
virtual ~UcbCommandEnvironment();
diff --git a/ucb/source/core/identify.hxx b/ucb/source/core/identify.hxx
index 91b985544af7..375d2c9c3217 100644
--- a/ucb/source/core/identify.hxx
+++ b/ucb/source/core/identify.hxx
@@ -29,7 +29,7 @@ class ContentIdentifier : public cppu::WeakImplHelper1 <
css::ucb::XContentIdentifier >
{
public:
- ContentIdentifier( const OUString& ContentId );
+ explicit ContentIdentifier( const OUString& ContentId );
virtual ~ContentIdentifier();
// XContentIdentifier
diff --git a/ucb/source/core/provprox.hxx b/ucb/source/core/provprox.hxx
index 88cf5c1fda8d..e217e964f437 100644
--- a/ucb/source/core/provprox.hxx
+++ b/ucb/source/core/provprox.hxx
@@ -53,7 +53,7 @@ class UcbContentProviderProxyFactory : public cppu::WeakImplHelper2 <
m_xSMgr;
public:
- UcbContentProviderProxyFactory(
+ explicit UcbContentProviderProxyFactory(
const com::sun::star::uno::Reference<
com::sun::star::lang::XMultiServiceFactory >& rxSMgr );
virtual ~UcbContentProviderProxyFactory();
diff --git a/ucb/source/core/ucb.hxx b/ucb/source/core/ucb.hxx
index fe3dec59a5be..784c055f3e96 100644
--- a/ucb/source/core/ucb.hxx
+++ b/ucb/source/core/ucb.hxx
@@ -62,7 +62,7 @@ class UniversalContentBroker :
public com::sun::star::util::XChangesListener
{
public:
- UniversalContentBroker( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& xContext );
+ explicit UniversalContentBroker( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& xContext );
virtual ~UniversalContentBroker();
// XInterface
diff --git a/ucb/source/core/ucbcmds.cxx b/ucb/source/core/ucbcmds.cxx
index e0974e1d46d4..28a254fd2edc 100644
--- a/ucb/source/core/ucbcmds.cxx
+++ b/ucb/source/core/ucbcmds.cxx
@@ -99,7 +99,7 @@ class InteractionHandlerProxy :
uno::Reference< task::XInteractionHandler > m_xOrig;
public:
- InteractionHandlerProxy(
+ explicit InteractionHandlerProxy(
const uno::Reference< task::XInteractionHandler > & xOrig )
: m_xOrig( xOrig ) {}
diff --git a/ucb/source/core/ucbprops.hxx b/ucb/source/core/ucbprops.hxx
index 3708f06fb05f..9b320bb407b5 100644
--- a/ucb/source/core/ucbprops.hxx
+++ b/ucb/source/core/ucbprops.hxx
@@ -51,7 +51,7 @@ private:
com::sun::star::beans::Property& rProp );
public:
- UcbPropertiesManager( const com::sun::star::uno::Reference<
+ explicit UcbPropertiesManager( const com::sun::star::uno::Reference<
com::sun::star::lang::XMultiServiceFactory >&
rxSMgr );
virtual ~UcbPropertiesManager();
diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx
index 98fb48aba888..51eebb122795 100644
--- a/ucb/source/core/ucbstore.cxx
+++ b/ucb/source/core/ucbstore.cxx
@@ -242,18 +242,14 @@ struct PropertySetRegistry_Impl
bool m_bTriedToGetRootReadAccess; // #82494#
bool m_bTriedToGetRootWriteAccess; // #82494#
- PropertySetRegistry_Impl( const Sequence< Any > &rInitArgs )
- : m_aInitArgs( rInitArgs ),
- m_bTriedToGetRootReadAccess( false ),
- m_bTriedToGetRootWriteAccess( false )
+ explicit PropertySetRegistry_Impl(const Sequence<Any> &rInitArgs)
+ : m_aInitArgs(rInitArgs)
+ , m_bTriedToGetRootReadAccess(false)
+ , m_bTriedToGetRootWriteAccess(false)
{
}
};
-
-
-
-
// PropertySetRegistry Implementation.
diff --git a/ucb/source/core/ucbstore.hxx b/ucb/source/core/ucbstore.hxx
index 83f27d8a2fc0..78e94bb1e0b8 100644
--- a/ucb/source/core/ucbstore.hxx
+++ b/ucb/source/core/ucbstore.hxx
@@ -57,7 +57,7 @@ class UcbStore : public cppu::WeakImplHelper3 <
UcbStore_Impl* m_pImpl;
public:
- UcbStore(
+ explicit UcbStore(
const com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext >& xContext );
virtual ~UcbStore();
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
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx
index f0f0572dc6ea..1f38a8cbc8d0 100644
--- a/ucbhelper/source/client/content.cxx
+++ b/ucbhelper/source/client/content.cxx
@@ -140,8 +140,8 @@ class ContentEventListener_Impl : public cppu::OWeakObject,
Content_Impl& m_rContent;
public:
- ContentEventListener_Impl( Content_Impl& rContent )
- : m_rContent( rContent ) {}
+ explicit ContentEventListener_Impl( Content_Impl& rContent )
+ : m_rContent( rContent ) {}
// XInterface
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType )
diff --git a/ucbhelper/source/client/proxydecider.cxx b/ucbhelper/source/client/proxydecider.cxx
index 5f2bf5ce057d..2faff9382617 100644
--- a/ucbhelper/source/client/proxydecider.cxx
+++ b/ucbhelper/source/client/proxydecider.cxx
@@ -62,7 +62,7 @@ private:
OString m_aWildString;
public:
- WildCard( const OUString& rWildCard )
+ explicit WildCard( const OUString& rWildCard )
: m_aWildString(
OUStringToOString(
rWildCard, RTL_TEXTENCODING_UTF8 ).toAsciiLowerCase() ) {}
@@ -133,7 +133,7 @@ private:
sal_Int32 nPort,
bool bUseFullyQualified ) const;
public:
- InternetProxyDecider_Impl(
+ explicit InternetProxyDecider_Impl(
const uno::Reference< uno::XComponentContext >& rxContext );
virtual ~InternetProxyDecider_Impl();
diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx
index 280d2422354c..7621e8ebe381 100644
--- a/ucbhelper/source/provider/contenthelper.cxx
+++ b/ucbhelper/source/provider/contenthelper.cxx
@@ -46,7 +46,7 @@ class PropertyEventSequence
sal_uInt32 m_nPos;
public:
- PropertyEventSequence( sal_uInt32 nSize )
+ explicit PropertyEventSequence( sal_uInt32 nSize )
: m_aSeq( nSize ), m_nPos( 0 ) {};
void append( const beans::PropertyChangeEvent& rEvt )
diff --git a/ucbhelper/source/provider/contentidentifier.cxx b/ucbhelper/source/provider/contentidentifier.cxx
index b95d3f4fc95b..b8f8cbc9b255 100644
--- a/ucbhelper/source/provider/contentidentifier.cxx
+++ b/ucbhelper/source/provider/contentidentifier.cxx
@@ -51,7 +51,7 @@ struct ContentIdentifier_Impl
OUString m_aProviderScheme;
osl::Mutex m_aMutex;
- ContentIdentifier_Impl( const OUString& rURL );
+ explicit ContentIdentifier_Impl( const OUString& rURL );
};
diff --git a/ucbhelper/source/provider/interactionrequest.cxx b/ucbhelper/source/provider/interactionrequest.cxx
index c36c2a68ff6f..6815a11c6771 100644
--- a/ucbhelper/source/provider/interactionrequest.cxx
+++ b/ucbhelper/source/provider/interactionrequest.cxx
@@ -53,7 +53,7 @@ struct InteractionRequest_Impl
com::sun::star::task::XInteractionContinuation > > m_aContinuations;
InteractionRequest_Impl() {}
- InteractionRequest_Impl( const uno::Any & rRequest )
+ explicit InteractionRequest_Impl( const uno::Any & rRequest )
: m_aRequest( rRequest ) {}
};
@@ -196,13 +196,8 @@ InteractionRequest::getContinuations()
}
-
-
// InteractionContinuation Implementation.
-
-
-
namespace ucbhelper
{
@@ -210,7 +205,7 @@ struct InteractionContinuation_Impl
{
InteractionRequest * m_pRequest;
- InteractionContinuation_Impl( InteractionRequest * pRequest )
+ explicit InteractionContinuation_Impl( InteractionRequest * pRequest )
: m_pRequest( pRequest ) {}
};
diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx
index 231585c92793..31617fd7feec 100644
--- a/ucbhelper/source/provider/resultset.cxx
+++ b/ucbhelper/source/provider/resultset.cxx
@@ -128,8 +128,8 @@ typedef cppu::OMultiTypeInterfaceContainerHelperVar<OUString>
class PropertyChangeListeners : public PropertyChangeListenerContainer
{
public:
- PropertyChangeListeners( osl::Mutex& rMtx )
- : PropertyChangeListenerContainer( rMtx ) {}
+ explicit PropertyChangeListeners( osl::Mutex& rMtx )
+ : PropertyChangeListenerContainer( rMtx ) {}
};
} // namespace ucbhelper_impl
diff --git a/ucbhelper/source/provider/resultsetmetadata.cxx b/ucbhelper/source/provider/resultsetmetadata.cxx
index ef2b2ae0c457..5afc296ca535 100644
--- a/ucbhelper/source/provider/resultsetmetadata.cxx
+++ b/ucbhelper/source/provider/resultsetmetadata.cxx
@@ -58,11 +58,11 @@ struct ResultSetMetaData_Impl
bool m_bObtainedTypes;
bool m_bGlobalReadOnlyValue;
- ResultSetMetaData_Impl( sal_Int32 nSize )
+ explicit ResultSetMetaData_Impl( sal_Int32 nSize )
: m_aColumnData( nSize ), m_bObtainedTypes( false ),
m_bGlobalReadOnlyValue( true ) {}
- ResultSetMetaData_Impl(
+ explicit ResultSetMetaData_Impl(
const std::vector< ::ucbhelper::ResultSetColumnData >& rColumnData )
: m_aColumnData( rColumnData ), m_bObtainedTypes( false ),
m_bGlobalReadOnlyValue( false ) {}
diff --git a/ucbhelper/source/provider/simplenameclashresolverequest.cxx b/ucbhelper/source/provider/simplenameclashresolverequest.cxx
index 55832d043d7c..39abc5b77902 100644
--- a/ucbhelper/source/provider/simplenameclashresolverequest.cxx
+++ b/ucbhelper/source/provider/simplenameclashresolverequest.cxx
@@ -40,7 +40,7 @@ class InteractionSupplyName : public InteractionContinuation,
OUString m_aName;
public:
- InteractionSupplyName( InteractionRequest * pRequest )
+ explicit InteractionSupplyName( InteractionRequest * pRequest )
: InteractionContinuation( pRequest ) {}
// XInterface
diff --git a/unoidl/source/sourceprovider-scanner.hxx b/unoidl/source/sourceprovider-scanner.hxx
index 614340e41b48..2b624a83ce6d 100644
--- a/unoidl/source/sourceprovider-scanner.hxx
+++ b/unoidl/source/sourceprovider-scanner.hxx
@@ -76,8 +76,8 @@ class SourceProviderPolymorphicStructTypeTemplateEntityPad:
public SourceProviderEntityPad
{
public:
- SourceProviderPolymorphicStructTypeTemplateEntityPad(bool published):
- SourceProviderEntityPad(published)
+ explicit SourceProviderPolymorphicStructTypeTemplateEntityPad(bool published)
+ : SourceProviderEntityPad(published)
{}
std::vector<OUString> typeParameters;
diff --git a/unoidl/source/unoidl-check.cxx b/unoidl/source/unoidl-check.cxx
index 22dff88d5f51..c6cdf4c7a9f1 100644
--- a/unoidl/source/unoidl-check.cxx
+++ b/unoidl/source/unoidl-check.cxx
@@ -140,7 +140,7 @@ OUString showDirection(
}
struct EqualsAnnotation {
- EqualsAnnotation(OUString const & name): name_(name) {}
+ explicit EqualsAnnotation(OUString const & name): name_(name) {}
bool operator ()(unoidl::AnnotatedReference const & ref)
{ return ref.name == name_; }
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx
index 0d055ecf53fa..e05d960f6539 100644
--- a/unotools/source/config/configitem.cxx
+++ b/unotools/source/config/configitem.cxx
@@ -100,14 +100,16 @@ class ValueCounter_Impl
{
sal_Int16& rCnt;
public:
- ValueCounter_Impl(sal_Int16& rCounter):
- rCnt(rCounter)
- {rCnt++;}
+ explicit ValueCounter_Impl(sal_Int16& rCounter)
+ : rCnt(rCounter)
+ {
+ rCnt++;
+ }
~ValueCounter_Impl()
- {
- OSL_ENSURE(rCnt>0, "RefCount < 0 ??");
- rCnt--;
- }
+ {
+ OSL_ENSURE(rCnt>0, "RefCount < 0 ??");
+ rCnt--;
+ }
};
ConfigChangeListener_Impl::ConfigChangeListener_Impl(
diff --git a/unotools/source/config/configvaluecontainer.cxx b/unotools/source/config/configvaluecontainer.cxx
index 7121e066033a..6ec6913eb38a 100644
--- a/unotools/source/config/configvaluecontainer.cxx
+++ b/unotools/source/config/configvaluecontainer.cxx
@@ -51,7 +51,7 @@ namespace utl
Type aDataType; // the type object pointed to by pLocation
public:
- NodeValueAccessor( const OUString& _rNodePath );
+ explicit NodeValueAccessor( const OUString& _rNodePath );
void bind( void* _pLocation, const Type& _rType );
diff --git a/unotools/source/config/fltrcfg.cxx b/unotools/source/config/fltrcfg.cxx
index 34b0fef9b663..20baaaa99932 100644
--- a/unotools/source/config/fltrcfg.cxx
+++ b/unotools/source/config/fltrcfg.cxx
@@ -63,7 +63,7 @@ protected:
virtual void ImplCommit() SAL_OVERRIDE;
public:
- SvtAppFilterOptions_Impl(const OUString& rRoot) :
+ explicit SvtAppFilterOptions_Impl(const OUString& rRoot) :
utl::ConfigItem(rRoot),
bLoadVBA(false),
bSaveVBA(false) {}
@@ -137,7 +137,7 @@ private:
virtual void ImplCommit() SAL_OVERRIDE;
public:
- SvtWriterFilterOptions_Impl(const OUString& rRoot) :
+ explicit SvtWriterFilterOptions_Impl(const OUString& rRoot) :
SvtAppFilterOptions_Impl(rRoot),
bLoadExecutable(false)
{}
@@ -185,7 +185,7 @@ private:
virtual void ImplCommit() SAL_OVERRIDE;
public:
- SvtCalcFilterOptions_Impl(const OUString& rRoot) :
+ explicit SvtCalcFilterOptions_Impl(const OUString& rRoot) :
SvtAppFilterOptions_Impl(rRoot),
bLoadExecutable(false)
{}
diff --git a/unotools/source/config/useroptions.cxx b/unotools/source/config/useroptions.cxx
index 1e0efb8817e3..424b2be8a759 100644
--- a/unotools/source/config/useroptions.cxx
+++ b/unotools/source/config/useroptions.cxx
@@ -73,7 +73,7 @@ std::weak_ptr<SvtUserOptions::Impl> SvtUserOptions::xSharedImpl;
class SvtUserOptions::ChangeListener : public cppu::WeakImplHelper1<util::XChangesListener>
{
public:
- ChangeListener (Impl& rParent): m_rParent(rParent) { }
+ explicit ChangeListener (Impl& rParent): m_rParent(rParent) { }
// XChangesListener
virtual void SAL_CALL changesOccurred (util::ChangesEvent const& Event) throw(uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/unotools/source/config/viewoptions.cxx b/unotools/source/config/viewoptions.cxx
index 9f078e10556e..95282f0e35c9 100644
--- a/unotools/source/config/viewoptions.cxx
+++ b/unotools/source/config/viewoptions.cxx
@@ -91,7 +91,7 @@ class SvtViewOptionsBase_Impl
public:
enum State { STATE_NONE, STATE_FALSE, STATE_TRUE };
- SvtViewOptionsBase_Impl ( const OUString& sList );
+ explicit SvtViewOptionsBase_Impl(const OUString& rList);
virtual ~SvtViewOptionsBase_Impl ( );
bool Exists ( const OUString& sName );
bool Delete ( const OUString& sName );
diff --git a/unotools/source/misc/closeveto.cxx b/unotools/source/misc/closeveto.cxx
index b33ef2902df9..c8e68c2b06dd 100644
--- a/unotools/source/misc/closeveto.cxx
+++ b/unotools/source/misc/closeveto.cxx
@@ -51,7 +51,7 @@ namespace utl
class CloseListener_Impl : public CloseListener_Base
{
public:
- CloseListener_Impl(bool const bHasOwnership)
+ explicit CloseListener_Impl(bool const bHasOwnership)
: m_bHasOwnership(bHasOwnership)
{
}
diff --git a/unotools/source/misc/componentresmodule.cxx b/unotools/source/misc/componentresmodule.cxx
index 7b75a86cdc51..74af55a443e2 100644
--- a/unotools/source/misc/componentresmodule.cxx
+++ b/unotools/source/misc/componentresmodule.cxx
@@ -42,7 +42,7 @@ namespace utl
OComponentResModuleImpl& operator=(const OComponentResModuleImpl&) SAL_DELETED_FUNCTION;
public:
- OComponentResModuleImpl( const OString& _rResFilePrefix )
+ explicit OComponentResModuleImpl( const OString& _rResFilePrefix )
:m_pResources( NULL )
,m_bInitialized( false )
,m_sResFilePrefix( _rResFilePrefix )
diff --git a/unotools/source/misc/fontcvt.cxx b/unotools/source/misc/fontcvt.cxx
index a154e0529a08..c2761278b1d7 100644
--- a/unotools/source/misc/fontcvt.cxx
+++ b/unotools/source/misc/fontcvt.cxx
@@ -1032,7 +1032,7 @@ class StarSymbolToMSMultiFontImpl : public StarSymbolToMSMultiFont
private:
::std::multimap<sal_Unicode, SymbolEntry> maMagicMap;
public:
- StarSymbolToMSMultiFontImpl(bool bPerfectOnly);
+ explicit StarSymbolToMSMultiFontImpl(bool bPerfectOnly);
OUString ConvertChar(sal_Unicode &rChar) SAL_OVERRIDE;
OUString ConvertString(OUString &rString, sal_Int32& rIndex) SAL_OVERRIDE;
};
diff --git a/unotools/source/misc/sharedunocomponent.cxx b/unotools/source/misc/sharedunocomponent.cxx
index 7d78e06aff7d..c29dce82223c 100644
--- a/unotools/source/misc/sharedunocomponent.cxx
+++ b/unotools/source/misc/sharedunocomponent.cxx
@@ -75,7 +75,7 @@ namespace utl
CloseableComponentImpl& operator=(const CloseableComponentImpl&) SAL_DELETED_FUNCTION;
public:
- CloseableComponentImpl( const Reference< XInterface >& _rxComponent );
+ explicit CloseableComponentImpl( const Reference< XInterface >& _rxComponent );
/** closes the component
diff --git a/unotools/source/ucbhelper/XTempFile.hxx b/unotools/source/ucbhelper/XTempFile.hxx
index a2ed5e511287..f8048fca0ea2 100644
--- a/unotools/source/ucbhelper/XTempFile.hxx
+++ b/unotools/source/ucbhelper/XTempFile.hxx
@@ -61,7 +61,7 @@ protected:
void checkConnected ();
public:
- OTempFileService (::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & context);
+ explicit OTempFileService (::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & context);
//Methods
// XInterface
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index be090bceca9c..513757e5e09e 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -75,9 +75,9 @@ class UcbDataSink_Impl : public ::cppu::WeakImplHelper2< XActiveDataControl, XAc
UcbLockBytesRef m_xLockBytes;
public:
- UcbDataSink_Impl( UcbLockBytes* pLockBytes )
- : m_xLockBytes( pLockBytes )
- {}
+ explicit UcbDataSink_Impl( UcbLockBytes* pLockBytes )
+ : m_xLockBytes( pLockBytes )
+ {}
// XActiveDataControl.
virtual void SAL_CALL addListener ( const Reference<XStreamListener> &/*rxListener*/) throw(RuntimeException, std::exception) SAL_OVERRIDE {}
@@ -102,9 +102,9 @@ class UcbStreamer_Impl : public ::cppu::WeakImplHelper2< XActiveDataStreamer, XA
UcbLockBytesRef m_xLockBytes;
public:
- UcbStreamer_Impl( UcbLockBytes* pLockBytes )
- : m_xLockBytes( pLockBytes )
- {}
+ explicit UcbStreamer_Impl( UcbLockBytes* pLockBytes )
+ : m_xLockBytes( pLockBytes )
+ {}
// XActiveDataControl.
virtual void SAL_CALL addListener ( const Reference<XStreamListener> &/*rxListener*/) throw(RuntimeException, std::exception) SAL_OVERRIDE {}
@@ -150,9 +150,9 @@ class UcbPropertiesChangeListener_Impl : public ::cppu::WeakImplHelper1< XProper
public:
UcbLockBytesRef m_xLockBytes;
- UcbPropertiesChangeListener_Impl( UcbLockBytesRef rRef )
- : m_xLockBytes( rRef )
- {}
+ explicit UcbPropertiesChangeListener_Impl( UcbLockBytesRef rRef )
+ : m_xLockBytes( rRef )
+ {}
virtual void SAL_CALL disposing ( const EventObject &/*rEvent*/) throw(RuntimeException, std::exception) SAL_OVERRIDE {}
virtual void SAL_CALL propertiesChange ( const Sequence<PropertyChangeEvent> &rEvent) throw(RuntimeException, std::exception) SAL_OVERRIDE;
@@ -341,7 +341,7 @@ class ModeratorsActiveDataStreamer
{
public:
- ModeratorsActiveDataStreamer(Moderator &theModerator);
+ explicit ModeratorsActiveDataStreamer(Moderator &theModerator);
virtual ~ModeratorsActiveDataStreamer();
@@ -377,7 +377,7 @@ class ModeratorsActiveDataSink
{
public:
- ModeratorsActiveDataSink(Moderator &theModerator);
+ explicit ModeratorsActiveDataSink(Moderator &theModerator);
virtual ~ModeratorsActiveDataSink();
@@ -460,7 +460,7 @@ class ModeratorsInteractionHandler
{
public:
- ModeratorsInteractionHandler(Moderator &theModerator);
+ explicit ModeratorsInteractionHandler(Moderator &theModerator);
virtual ~ModeratorsInteractionHandler();
diff --git a/unoxml/source/dom/document.hxx b/unoxml/source/dom/document.hxx
index a4ef13a73aa1..4ba221be3af3 100644
--- a/unoxml/source/dom/document.hxx
+++ b/unoxml/source/dom/document.hxx
@@ -85,7 +85,7 @@ namespace DOM
::std::unique_ptr<events::CEventDispatcher> const m_pEventDispatcher;
- CDocument(xmlDocPtr const pDocPtr);
+ explicit CDocument(xmlDocPtr const pDocPtr);
public:
diff --git a/unoxml/source/dom/documentbuilder.hxx b/unoxml/source/dom/documentbuilder.hxx
index e6c4ddb4aaa0..2d16da2e7a85 100644
--- a/unoxml/source/dom/documentbuilder.hxx
+++ b/unoxml/source/dom/documentbuilder.hxx
@@ -59,7 +59,7 @@ namespace DOM
public:
// ctor
- CDocumentBuilder(
+ explicit CDocumentBuilder(
css::uno::Reference< css::lang::XMultiServiceFactory > const&
xFactory);
diff --git a/unoxml/source/dom/elementlist.cxx b/unoxml/source/dom/elementlist.cxx
index 2e7601723cf7..8dd8ac758323 100644
--- a/unoxml/source/dom/elementlist.cxx
+++ b/unoxml/source/dom/elementlist.cxx
@@ -38,7 +38,7 @@ namespace
css::uno::WeakReference<css::xml::dom::events::XEventListener> mxOwner;
public:
- WeakEventListener(const css::uno::Reference<css::xml::dom::events::XEventListener>& rOwner)
+ explicit WeakEventListener(const css::uno::Reference<css::xml::dom::events::XEventListener>& rOwner)
: mxOwner(rOwner)
{
}
diff --git a/unoxml/source/dom/saxbuilder.hxx b/unoxml/source/dom/saxbuilder.hxx
index 4f2565c19b47..ce8ce1368fdf 100644
--- a/unoxml/source/dom/saxbuilder.hxx
+++ b/unoxml/source/dom/saxbuilder.hxx
@@ -80,7 +80,7 @@ namespace DOM
static css::uno::Sequence< OUString > _getSupportedServiceNames();
static css::uno::Reference< XInterface > _getInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr);
- CSAXDocumentBuilder(const css::uno::Reference< css::lang::XMultiServiceFactory >& mgr);
+ explicit CSAXDocumentBuilder(const css::uno::Reference< css::lang::XMultiServiceFactory >& mgr);
// XServiceInfo
virtual OUString SAL_CALL getImplementationName()
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index 10f7241a24ab..2b20ce0cd8fa 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -186,14 +186,14 @@ public:
struct URI : public Resource
{
OString const value;
- URI(OString const& i_rValue)
+ explicit URI(OString const& i_rValue)
: value(i_rValue)
{ }
};
struct BlankNode : public Resource
{
OString const value;
- BlankNode(OString const& i_rValue)
+ explicit BlankNode(OString const& i_rValue)
: value(i_rValue)
{ }
};
@@ -635,7 +635,7 @@ class NodeArrayDeleter : public std::unary_function<librdf_node**, void>
const int m_Count;
public:
- NodeArrayDeleter(int i_Count) : m_Count(i_Count) { }
+ explicit NodeArrayDeleter(int i_Count) : m_Count(i_Count) { }
void operator() (librdf_node** io_pArray) const throw ()
{
diff --git a/unoxml/source/xpath/xpathapi.hxx b/unoxml/source/xpath/xpathapi.hxx
index 52b274d4ab72..32b03eeb12a0 100644
--- a/unoxml/source/xpath/xpathapi.hxx
+++ b/unoxml/source/xpath/xpathapi.hxx
@@ -65,7 +65,7 @@ namespace XPath
public:
// ctor
- CXPathAPI(
+ explicit CXPathAPI(
const css::uno::Reference< css::lang::XMultiServiceFactory >&
rSMgr);
diff --git a/uui/source/fltdlg.cxx b/uui/source/fltdlg.cxx
index c2135bead606..24e5476f2588 100644
--- a/uui/source/fltdlg.cxx
+++ b/uui/source/fltdlg.cxx
@@ -168,7 +168,7 @@ bool FilterDialog::AskForFilter( FilterNameListPtr& pSelectedItem )
class StringCalculator : public ::cppu::WeakImplHelper1< ::com::sun::star::util::XStringWidth >
{
public:
- StringCalculator( const OutputDevice* pDevice )
+ explicit StringCalculator( const OutputDevice* pDevice )
: m_pDevice( const_cast< OutputDevice * >( pDevice ) )
{
}
diff --git a/uui/source/fltdlg.hxx b/uui/source/fltdlg.hxx
index 958ad99f5f54..df0b8eeafbf8 100644
--- a/uui/source/fltdlg.hxx
+++ b/uui/source/fltdlg.hxx
@@ -46,7 +46,7 @@ class FilterDialog : public ModalDialog
{
// public interface
public:
- FilterDialog ( vcl::Window* pParentWindow );
+ explicit FilterDialog(vcl::Window* pParentWindow);
virtual ~FilterDialog();
virtual void dispose() SAL_OVERRIDE;
void SetURL ( const OUString& sURL );
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index 1f20c31ccafc..d16935bedd8e 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -112,7 +112,7 @@ namespace {
class HandleData : public osl::Condition
{
public:
- HandleData(
+ explicit HandleData(
uno::Reference< task::XInteractionRequest > const & rRequest)
: osl::Condition(),
m_rRequest(rRequest),
diff --git a/uui/source/iahndl.hxx b/uui/source/iahndl.hxx
index 437d0f26a541..1059b3c0a28b 100644
--- a/uui/source/iahndl.hxx
+++ b/uui/source/iahndl.hxx
@@ -69,8 +69,8 @@ struct InteractionHandlerData
OUString ServiceName;
InteractionHandlerData() {};
- InteractionHandlerData(const OUString & rService)
- : ServiceName( rService ){}
+ explicit InteractionHandlerData(const OUString & rService)
+ : ServiceName( rService ){}
};
typedef std::vector< InteractionHandlerData > InteractionHandlerDataList;
@@ -97,7 +97,7 @@ public:
com::sun::star::uno::Reference<
com::sun::star::awt::XWindow > const & rxWindow,
const OUString & rContextParam);
- UUIInteractionHelper(
+ explicit UUIInteractionHelper(
com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext > const & rxContext);
@@ -295,9 +295,9 @@ private:
class ErrorResource: private Resource
{
public:
- inline ErrorResource(ResId & rResId): Resource(rResId) {}
+ explicit ErrorResource(ResId & rResId): Resource(rResId) {}
- inline ~ErrorResource() { FreeResource(); }
+ ~ErrorResource() { FreeResource(); }
bool getString(ErrCode nErrorCode, OUString &rString) const;
};
diff --git a/uui/source/interactionhandler.cxx b/uui/source/interactionhandler.cxx
index 4cb9c523f458..f3984d11d877 100644
--- a/uui/source/interactionhandler.cxx
+++ b/uui/source/interactionhandler.cxx
@@ -44,7 +44,7 @@ private:
UUIInteractionHelper * m_pImpl;
public:
- UUIInteractionHandler(com::sun::star::uno::Reference<
+ explicit UUIInteractionHandler(com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext >
const & rxContext);
diff --git a/uui/source/passwordcontainer.hxx b/uui/source/passwordcontainer.hxx
index 6c4542cfea7e..04eb55b3f771 100644
--- a/uui/source/passwordcontainer.hxx
+++ b/uui/source/passwordcontainer.hxx
@@ -47,7 +47,7 @@ namespace uui {
class PasswordContainerHelper
{
public:
- PasswordContainerHelper(
+ explicit PasswordContainerHelper(
com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext > const &
xContext );
diff --git a/uui/source/requeststringresolver.hxx b/uui/source/requeststringresolver.hxx
index f7062ab578e5..4a21456b603b 100644
--- a/uui/source/requeststringresolver.hxx
+++ b/uui/source/requeststringresolver.hxx
@@ -52,7 +52,7 @@ private:
UUIInteractionRequestStringResolver(UUIInteractionRequestStringResolver &) SAL_DELETED_FUNCTION;
void operator =(UUIInteractionRequestStringResolver) SAL_DELETED_FUNCTION;
- UUIInteractionRequestStringResolver(
+ explicit UUIInteractionRequestStringResolver(
com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext >
const & rxContext);