summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-08 09:56:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-08 17:15:04 +0000
commit0aa5414015813eda46dbfd7c3bcf259485ac1968 (patch)
treeba552e8e27c00f0d2d49564ed3dd98b829b04186 /sal
parent13e0ec9f38736557d9b4737298ca9a858919e6e3 (diff)
cppcheck: noExplicitConstructor
Change-Id: If1ddb112c85f127295eb55566360b066e7173ba2 Reviewed-on: https://gerrit.libreoffice.org/21245 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/path_helper.hxx2
-rw-r--r--sal/workben/clipboardwben/testcopy/XTDataObject.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sal/osl/w32/path_helper.hxx b/sal/osl/w32/path_helper.hxx
index 6f75fca3f94b..ee77791781c2 100644
--- a/sal/osl/w32/path_helper.hxx
+++ b/sal/osl/w32/path_helper.hxx
@@ -74,7 +74,7 @@ class LongPathBuffer
LongPathBuffer& operator=( const LongPathBuffer& );
public:
- LongPathBuffer( sal_uInt32 nCharNum )
+ explicit LongPathBuffer( sal_uInt32 nCharNum )
: m_pBuffer( reinterpret_cast<T*>( rtl_allocateMemory( nCharNum * sizeof( T ) ) ) )
, m_nCharNum( nCharNum )
{
diff --git a/sal/workben/clipboardwben/testcopy/XTDataObject.hxx b/sal/workben/clipboardwben/testcopy/XTDataObject.hxx
index f6eb975a1034..3b71d78d7adb 100644
--- a/sal/workben/clipboardwben/testcopy/XTDataObject.hxx
+++ b/sal/workben/clipboardwben/testcopy/XTDataObject.hxx
@@ -35,7 +35,7 @@ class EnumFormatEtc;
class CXTDataObject : public IDataObject
{
public:
- CXTDataObject( LONG nRefCntInitVal = 0);
+ explicit CXTDataObject(LONG nRefCntInitVal = 0);
~CXTDataObject( );
// ole interface implementation
@@ -80,7 +80,7 @@ private:
class CEnumFormatEtc : public IEnumFORMATETC
{
public:
- CEnumFormatEtc( LPUNKNOWN pUnkDataObj );
+ explicit CEnumFormatEtc(LPUNKNOWN pUnkDataObj);
~CEnumFormatEtc( );
// IUnknown