summaryrefslogtreecommitdiff
path: root/sax/source
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/source
parent8be504b6239d34963cb44411d0b3502ac23aeeb2 (diff)
cppcheck: noExplicitConstructor
Change-Id: Id6d969713d94b558a93d303c6dabcbfdd1c65194
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/fastparser/fastparser.cxx6
-rw-r--r--sax/source/tools/fastserializer.hxx4
2 files changed, 5 insertions, 5 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*/ ) {}