cppcheck: noExplicitConstructor

Change-Id: Ic6407a57440fbd887f9ec9d5963e5748aa89a29e
This commit is contained in:
Caolán McNamara
2016-01-02 20:24:38 +00:00
parent dfb73ede13
commit f61d3bc92c
5 changed files with 10 additions and 8 deletions

View File

@@ -276,7 +276,7 @@ public:
class DummyLine3D : public DummyXShape
{
public:
DummyLine3D(const VLineProperties& rProperties);
explicit DummyLine3D(const VLineProperties& rProperties);
};
class DummyLine2D : public DummyXShape

View File

@@ -247,8 +247,8 @@ class UnaryFunctionFunctor
public:
UnaryFunctionFunctor( const ParserContextSharedPtr& rContext ) :
mpContext( rContext )
explicit UnaryFunctionFunctor(const ParserContextSharedPtr& rContext)
: mpContext(rContext)
{
}
void operator()( StringIteratorT, StringIteratorT ) const

View File

@@ -166,7 +166,7 @@ struct SvxGeneralTabPage::Row
unsigned nFirstField, nLastField;
public:
Row (FixedText *pLabel_)
explicit Row (FixedText *pLabel_)
: pLabel(pLabel_)
, nFirstField(0)
, nLastField(0)

View File

@@ -65,9 +65,11 @@ struct DataSupplier_Impl
rtl::Reference< ODocumentContainer > m_xContent;
bool m_bCountFinal;
DataSupplier_Impl( const rtl::Reference< ODocumentContainer >& rContent )
: m_xContent(rContent)
, m_bCountFinal( false ) {}
explicit DataSupplier_Impl(const rtl::Reference< ODocumentContainer >& rContent)
: m_xContent(rContent)
, m_bCountFinal(false)
{
}
~DataSupplier_Impl();
};

View File

@@ -34,7 +34,7 @@ class DataSupplier : public ucbhelper::ResultSetDataSupplier
::std::unique_ptr<DataSupplier_Impl> m_pImpl;
public:
DataSupplier( const rtl::Reference< ODocumentContainer >& rxContent );
explicit DataSupplier( const rtl::Reference< ODocumentContainer >& rxContent );
virtual ~DataSupplier();
virtual OUString queryContentIdentifierString( sal_uInt32 nIndex ) override;