summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-29 20:23:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-10-30 08:13:26 +0000
commite87f71cebee26624b4e9495b0acc172d47e705dd (patch)
treee30b48bc7923147a4edc2c7925e3a8d85bf999f6 /sax
parent8be504b6239d34963cb44411d0b3502ac23aeeb2 (diff)
cppcheck: noExplicitConstructor
Change-Id: Id6d969713d94b558a93d303c6dabcbfdd1c65194
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/fastparser.cxx6
-rw-r--r--sax/source/tools/fastserializer.hxx4
-rw-r--r--sax/test/sax/testsax.cxx2
-rw-r--r--sax/test/sax/testwriter.cxx4
-rw-r--r--sax/test/saxdemo.cxx4
5 files changed, 10 insertions, 10 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 824225ea79b4..d8baef9cb282 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -200,7 +200,7 @@ namespace sax_fastparser {
class FastSaxParserImpl
{
public:
- FastSaxParserImpl( FastSaxParser* pFront );
+ explicit FastSaxParserImpl(FastSaxParser* pFront);
~FastSaxParserImpl();
// XFastParser
@@ -270,7 +270,7 @@ class ParserThread: public salhelper::Thread
{
FastSaxParserImpl *mpParser;
public:
- ParserThread(FastSaxParserImpl *pParser): Thread("Parser"), mpParser(pParser) {}
+ explicit ParserThread(FastSaxParserImpl *pParser): Thread("Parser"), mpParser(pParser) {}
private:
virtual void execute() override
{
@@ -331,7 +331,7 @@ static int call_callbackExternalEntityRef( XML_Parser parser,
class FastLocatorImpl : public WeakImplHelper< XLocator >
{
public:
- FastLocatorImpl( FastSaxParserImpl *p ) : mpParser(p) {}
+ explicit FastLocatorImpl(FastSaxParserImpl *p) : mpParser(p) {}
void dispose() { mpParser = 0; }
void checkDispose() throw (RuntimeException) { if( !mpParser ) throw DisposedException(); }
diff --git a/sax/source/tools/fastserializer.hxx b/sax/source/tools/fastserializer.hxx
index a45da2ecae0d..7a56524c0f22 100644
--- a/sax/source/tools/fastserializer.hxx
+++ b/sax/source/tools/fastserializer.hxx
@@ -48,7 +48,7 @@ class FastSaxSerializer
typedef css::uno::Sequence< ::sal_Int32 > Int32Sequence;
public:
- FastSaxSerializer( const css::uno::Reference< css::io::XOutputStream >& xOutputStream );
+ explicit FastSaxSerializer(const css::uno::Reference< css::io::XOutputStream >& xOutputStream);
~FastSaxSerializer();
css::uno::Reference< css::io::XOutputStream > getOutputStream();
@@ -176,7 +176,7 @@ private:
std::deque<sal_Int32> m_DebugPostponedStartedElements;
#endif
- ForMerge(sal_Int32 const nTag) : m_Tag(nTag) {}
+ explicit ForMerge(sal_Int32 const nTag) : m_Tag(nTag) {}
virtual ~ForMerge() {}
virtual void setCurrentElement( ::sal_Int32 /*nToken*/ ) {}
diff --git a/sax/test/sax/testsax.cxx b/sax/test/sax/testsax.cxx
index 104ac8c7de77..8dbfdfbaac82 100644
--- a/sax/test/sax/testsax.cxx
+++ b/sax/test/sax/testsax.cxx
@@ -47,7 +47,7 @@ namespace sax_test {
class OSaxParserTest : public WeakImplHelper< XSimpleTest >
{
public:
- OSaxParserTest( const Reference < XMultiServiceFactory > & rFactory ) : m_rFactory( rFactory )
+ explicit OSaxParserTest( const Reference < XMultiServiceFactory > & rFactory ) : m_rFactory( rFactory )
{
}
diff --git a/sax/test/sax/testwriter.cxx b/sax/test/sax/testwriter.cxx
index a1bddcf26c6b..c0af020601f2 100644
--- a/sax/test/sax/testwriter.cxx
+++ b/sax/test/sax/testwriter.cxx
@@ -49,7 +49,7 @@ class OFileWriter :
public WeakImplHelper< XOutputStream >
{
public:
- OFileWriter( char *pcFile ) { strncpy( m_pcFile, pcFile, 256 - 1 ); m_f = 0; }
+ explicit OFileWriter( char *pcFile ) { strncpy( m_pcFile, pcFile, 256 - 1 ); m_f = 0; }
public:
@@ -94,7 +94,7 @@ class OSaxWriterTest :
public WeakImplHelper< XSimpleTest >
{
public:
- OSaxWriterTest( const Reference < XMultiServiceFactory > & rFactory ) : m_rFactory( rFactory )
+ explicit OSaxWriterTest( const Reference < XMultiServiceFactory > & rFactory ) : m_rFactory( rFactory )
{
}
diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx
index 51012fe61020..cc881ebb1bcc 100644
--- a/sax/test/saxdemo.cxx
+++ b/sax/test/saxdemo.cxx
@@ -59,7 +59,7 @@ using namespace ::com::sun::star::io;
class OInputStream : public WeakImplHelper < XInputStream >
{
public:
- OInputStream( const Sequence< sal_Int8 >&seq ) :
+ explicit OInputStream( const Sequence< sal_Int8 >&seq ) :
m_seq( seq ),
nPos( 0 )
{}
@@ -433,7 +433,7 @@ class OFileWriter :
public WeakImplHelper< XOutputStream >
{
public:
- OFileWriter( char *pcFile ) { strncpy( m_pcFile , pcFile, 256 - 1 ); m_f = 0; }
+ explicit OFileWriter( char *pcFile ) { strncpy( m_pcFile , pcFile, 256 - 1 ); m_f = 0; }
public: