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 /unoxml | |
parent | ecdbd313838093055c66614d7e5793aacae7c5bd (diff) |
cppcheck: noExplicitConstructor
Change-Id: If947733a205e8ece1845079be95cbc2d6cbd5029
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/dom/document.hxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/documentbuilder.hxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/elementlist.cxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/saxbuilder.hxx | 2 | ||||
-rw-r--r-- | unoxml/source/rdf/librdf_repository.cxx | 6 | ||||
-rw-r--r-- | unoxml/source/xpath/xpathapi.hxx | 2 |
6 files changed, 8 insertions, 8 deletions
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); |