summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-25 15:28:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-26 09:57:21 +0100
commit6c9dfa8ab7cc25d6cc3ce988803118b5d56ea30b (patch)
tree83b683bb177d643385618e1f46642d014332a59d /ucbhelper
parentecdbd313838093055c66614d7e5793aacae7c5bd (diff)
cppcheck: noExplicitConstructor
Change-Id: If947733a205e8ece1845079be95cbc2d6cbd5029
Diffstat (limited to 'ucbhelper')
-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
8 files changed, 13 insertions, 18 deletions
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