From 6c9dfa8ab7cc25d6cc3ce988803118b5d56ea30b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 25 May 2015 15:28:47 +0100 Subject: cppcheck: noExplicitConstructor Change-Id: If947733a205e8ece1845079be95cbc2d6cbd5029 --- unoxml/source/dom/document.hxx | 2 +- unoxml/source/dom/documentbuilder.hxx | 2 +- unoxml/source/dom/elementlist.cxx | 2 +- unoxml/source/dom/saxbuilder.hxx | 2 +- unoxml/source/rdf/librdf_repository.cxx | 6 +++--- unoxml/source/xpath/xpathapi.hxx | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'unoxml') 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 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 mxOwner; public: - WeakEventListener(const css::uno::Reference& rOwner) + explicit WeakEventListener(const css::uno::Reference& 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 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); -- cgit v1.2.3