Kaydet (Commit) a21a0b6d authored tarafından Miklos Vajna's avatar Miklos Vajna

writerfilter: noExplicitConstructor cppcheck fixes

Change-Id: I4195fc8a7736a29a6f08d0745f39a0907a5545e8
üst 8e6527a9
...@@ -39,7 +39,7 @@ namespace writerfilter ...@@ -39,7 +39,7 @@ namespace writerfilter
xmlTextWriterPtr pWriter; xmlTextWriterPtr pWriter;
const char* pName; const char* pName;
TagLogger(const char* name); explicit TagLogger(const char* name);
public: public:
~TagLogger(); ~TagLogger();
......
...@@ -65,7 +65,7 @@ private: ...@@ -65,7 +65,7 @@ private:
virtual void lcl_sprm(Sprm & sprm) SAL_OVERRIDE; virtual void lcl_sprm(Sprm & sprm) SAL_OVERRIDE;
public: public:
TblStylePrHandler( DomainMapper & rDMapper ); explicit TblStylePrHandler( DomainMapper & rDMapper );
virtual ~TblStylePrHandler( ); virtual ~TblStylePrHandler( );
inline PropertyMapPtr getProperties() { return m_pProperties; }; inline PropertyMapPtr getProperties() { return m_pProperties; };
......
...@@ -32,7 +32,7 @@ class TrackChangesHandler : public LoggedProperties ...@@ -32,7 +32,7 @@ class TrackChangesHandler : public LoggedProperties
virtual void lcl_sprm(Sprm & sprm) SAL_OVERRIDE; virtual void lcl_sprm(Sprm & sprm) SAL_OVERRIDE;
public: public:
TrackChangesHandler( sal_Int32 nToken ); explicit TrackChangesHandler( sal_Int32 nToken );
virtual ~TrackChangesHandler(); virtual ~TrackChangesHandler();
/// Compute the UNO properties for the track changes object based on the received tokens. /// Compute the UNO properties for the track changes object based on the received tokens.
......
...@@ -53,7 +53,7 @@ class RtfFilter : public cppu::WeakImplHelper ...@@ -53,7 +53,7 @@ class RtfFilter : public cppu::WeakImplHelper
uno::Reference<lang::XComponent> m_xSrcDoc, m_xDstDoc; uno::Reference<lang::XComponent> m_xSrcDoc, m_xDstDoc;
public: public:
RtfFilter(const uno::Reference<uno::XComponentContext>& xContext); explicit RtfFilter(const uno::Reference<uno::XComponentContext>& xContext);
virtual ~RtfFilter(); virtual ~RtfFilter();
// XFilter // XFilter
......
...@@ -96,7 +96,7 @@ protected: ...@@ -96,7 +96,7 @@ protected:
uno::Reference<lang::XComponent> m_xSrcDoc, m_xDstDoc; uno::Reference<lang::XComponent> m_xSrcDoc, m_xDstDoc;
public: public:
WriterFilter(const uno::Reference<uno::XComponentContext>& rxContext) explicit WriterFilter(const uno::Reference<uno::XComponentContext>& rxContext)
: m_xContext(rxContext) : m_xContext(rxContext)
{} {}
virtual ~WriterFilter() {} virtual ~WriterFilter() {}
......
...@@ -36,7 +36,7 @@ class WriterFilterDetection : public cppu::WeakImplHelper ...@@ -36,7 +36,7 @@ class WriterFilterDetection : public cppu::WeakImplHelper
uno::Reference<uno::XComponentContext> m_xContext; uno::Reference<uno::XComponentContext> m_xContext;
public: public:
WriterFilterDetection(const uno::Reference<uno::XComponentContext>& rxContext); explicit WriterFilterDetection(const uno::Reference<uno::XComponentContext>& rxContext);
virtual ~WriterFilterDetection(); virtual ~WriterFilterDetection();
//XExtendedFilterDetection //XExtendedFilterDetection
......
...@@ -30,7 +30,7 @@ class OOXMLFootnoteHandler : public Properties ...@@ -30,7 +30,7 @@ class OOXMLFootnoteHandler : public Properties
OOXMLFastContextHandler * mpFastContext; OOXMLFastContextHandler * mpFastContext;
public: public:
OOXMLFootnoteHandler(OOXMLFastContextHandler * pContext); explicit OOXMLFootnoteHandler(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFootnoteHandler(); virtual ~OOXMLFootnoteHandler();
virtual void attribute(Id name, Value & val) SAL_OVERRIDE; virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
...@@ -41,7 +41,7 @@ class OOXMLEndnoteHandler : public Properties ...@@ -41,7 +41,7 @@ class OOXMLEndnoteHandler : public Properties
{ {
OOXMLFastContextHandler * mpFastContext; OOXMLFastContextHandler * mpFastContext;
public: public:
OOXMLEndnoteHandler(OOXMLFastContextHandler * pContext); explicit OOXMLEndnoteHandler(OOXMLFastContextHandler * pContext);
virtual ~OOXMLEndnoteHandler(); virtual ~OOXMLEndnoteHandler();
virtual void attribute(Id name, Value & val) SAL_OVERRIDE; virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
...@@ -54,7 +54,7 @@ class OOXMLFooterHandler : public Properties ...@@ -54,7 +54,7 @@ class OOXMLFooterHandler : public Properties
OUString msStreamId; OUString msStreamId;
sal_Int32 mnType; sal_Int32 mnType;
public: public:
OOXMLFooterHandler(OOXMLFastContextHandler * pContext); explicit OOXMLFooterHandler(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFooterHandler() {} virtual ~OOXMLFooterHandler() {}
void finalize(); void finalize();
virtual void attribute(Id name, Value & val) SAL_OVERRIDE; virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
...@@ -67,7 +67,7 @@ class OOXMLHeaderHandler : public Properties ...@@ -67,7 +67,7 @@ class OOXMLHeaderHandler : public Properties
OUString msStreamId; OUString msStreamId;
sal_Int32 mnType; sal_Int32 mnType;
public: public:
OOXMLHeaderHandler(OOXMLFastContextHandler * pContext); explicit OOXMLHeaderHandler(OOXMLFastContextHandler * pContext);
virtual ~OOXMLHeaderHandler() {} virtual ~OOXMLHeaderHandler() {}
void finalize(); void finalize();
virtual void attribute(Id name, Value & val) SAL_OVERRIDE; virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
...@@ -78,7 +78,7 @@ class OOXMLCommentHandler : public Properties ...@@ -78,7 +78,7 @@ class OOXMLCommentHandler : public Properties
{ {
OOXMLFastContextHandler * mpFastContext; OOXMLFastContextHandler * mpFastContext;
public: public:
OOXMLCommentHandler(OOXMLFastContextHandler * pContext); explicit OOXMLCommentHandler(OOXMLFastContextHandler * pContext);
virtual ~OOXMLCommentHandler(); virtual ~OOXMLCommentHandler();
virtual void attribute(Id name, Value & val) SAL_OVERRIDE; virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
virtual void sprm(Sprm & sprm) SAL_OVERRIDE; virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
...@@ -89,7 +89,7 @@ class OOXMLOLEHandler : public Properties ...@@ -89,7 +89,7 @@ class OOXMLOLEHandler : public Properties
OOXMLFastContextHandler * mpFastContext; OOXMLFastContextHandler * mpFastContext;
public: public:
OOXMLOLEHandler(OOXMLFastContextHandler * pContext); explicit OOXMLOLEHandler(OOXMLFastContextHandler * pContext);
virtual ~OOXMLOLEHandler(); virtual ~OOXMLOLEHandler();
virtual void attribute(Id name, Value & val) SAL_OVERRIDE; virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
...@@ -101,7 +101,7 @@ class OOXMLEmbeddedFontHandler : public Properties ...@@ -101,7 +101,7 @@ class OOXMLEmbeddedFontHandler : public Properties
OOXMLFastContextHandler * mpFastContext; OOXMLFastContextHandler * mpFastContext;
public: public:
OOXMLEmbeddedFontHandler(OOXMLFastContextHandler * pContext); explicit OOXMLEmbeddedFontHandler(OOXMLFastContextHandler * pContext);
virtual ~OOXMLEmbeddedFontHandler(); virtual ~OOXMLEmbeddedFontHandler();
virtual void attribute(Id name, Value & val) SAL_OVERRIDE; virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
...@@ -113,7 +113,7 @@ class OOXMLBreakHandler : public Properties ...@@ -113,7 +113,7 @@ class OOXMLBreakHandler : public Properties
sal_Int32 mnType, mnClear; sal_Int32 mnType, mnClear;
Stream & mrStream; Stream & mrStream;
public: public:
OOXMLBreakHandler(Stream & rStream); explicit OOXMLBreakHandler(Stream & rStream);
virtual ~OOXMLBreakHandler(); virtual ~OOXMLBreakHandler();
virtual void attribute(Id name, Value & val) SAL_OVERRIDE; virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
virtual void sprm(Sprm & sprm) SAL_OVERRIDE; virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
...@@ -123,7 +123,7 @@ class OOXMLPictureHandler : public Properties ...@@ -123,7 +123,7 @@ class OOXMLPictureHandler : public Properties
{ {
OOXMLFastContextHandler * mpFastContext; OOXMLFastContextHandler * mpFastContext;
public: public:
OOXMLPictureHandler(OOXMLFastContextHandler * pContext); explicit OOXMLPictureHandler(OOXMLFastContextHandler * pContext);
virtual ~OOXMLPictureHandler(); virtual ~OOXMLPictureHandler();
virtual void attribute(Id name, Value & val) SAL_OVERRIDE; virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
...@@ -137,7 +137,7 @@ class OOXMLHyperlinkHandler : public Properties ...@@ -137,7 +137,7 @@ class OOXMLHyperlinkHandler : public Properties
OUString mURL; OUString mURL;
public: public:
OOXMLHyperlinkHandler(OOXMLFastContextHandler * pContext); explicit OOXMLHyperlinkHandler(OOXMLFastContextHandler * pContext);
virtual ~OOXMLHyperlinkHandler(); virtual ~OOXMLHyperlinkHandler();
virtual void attribute(Id name, Value & val) SAL_OVERRIDE; virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
......
...@@ -35,7 +35,7 @@ class OOXMLBinaryObjectReference : ...@@ -35,7 +35,7 @@ class OOXMLBinaryObjectReference :
void read(); void read();
public: public:
OOXMLBinaryObjectReference(OOXMLStream::Pointer_t pStream); explicit OOXMLBinaryObjectReference(OOXMLStream::Pointer_t pStream);
virtual ~OOXMLBinaryObjectReference(); virtual ~OOXMLBinaryObjectReference();
virtual void resolve(BinaryObj & rHandler) SAL_OVERRIDE; virtual void resolve(BinaryObj & rHandler) SAL_OVERRIDE;
......
...@@ -50,11 +50,9 @@ public: ...@@ -50,11 +50,9 @@ public:
enum ResourceEnum_t { UNKNOWN, STREAM, PROPERTIES, TABLE, SHAPE }; enum ResourceEnum_t { UNKNOWN, STREAM, PROPERTIES, TABLE, SHAPE };
OOXMLFastContextHandler(); OOXMLFastContextHandler();
explicit OOXMLFastContextHandler explicit OOXMLFastContextHandler(css::uno::Reference< css::uno::XComponentContext > const & context);
(css::uno::Reference< css::uno::XComponentContext > const & context);
explicit OOXMLFastContextHandler explicit OOXMLFastContextHandler(OOXMLFastContextHandler * pContext);
(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFastContextHandler(); virtual ~OOXMLFastContextHandler();
...@@ -254,7 +252,7 @@ private: ...@@ -254,7 +252,7 @@ private:
class OOXMLFastContextHandlerStream : public OOXMLFastContextHandler class OOXMLFastContextHandlerStream : public OOXMLFastContextHandler
{ {
public: public:
OOXMLFastContextHandlerStream(OOXMLFastContextHandler * pContext); explicit OOXMLFastContextHandlerStream(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFastContextHandlerStream(); virtual ~OOXMLFastContextHandlerStream();
virtual ResourceEnum_t getResource() const SAL_OVERRIDE { return STREAM; } virtual ResourceEnum_t getResource() const SAL_OVERRIDE { return STREAM; }
...@@ -277,7 +275,7 @@ private: ...@@ -277,7 +275,7 @@ private:
class OOXMLFastContextHandlerProperties : public OOXMLFastContextHandler class OOXMLFastContextHandlerProperties : public OOXMLFastContextHandler
{ {
public: public:
OOXMLFastContextHandlerProperties(OOXMLFastContextHandler * pContext); explicit OOXMLFastContextHandlerProperties(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFastContextHandlerProperties(); virtual ~OOXMLFastContextHandlerProperties();
virtual OOXMLValue::Pointer_t getValue() const SAL_OVERRIDE; virtual OOXMLValue::Pointer_t getValue() const SAL_OVERRIDE;
...@@ -313,7 +311,7 @@ class OOXMLFastContextHandlerPropertyTable : ...@@ -313,7 +311,7 @@ class OOXMLFastContextHandlerPropertyTable :
public OOXMLFastContextHandlerProperties public OOXMLFastContextHandlerProperties
{ {
public: public:
OOXMLFastContextHandlerPropertyTable(OOXMLFastContextHandler * pContext); explicit OOXMLFastContextHandlerPropertyTable(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFastContextHandlerPropertyTable(); virtual ~OOXMLFastContextHandlerPropertyTable();
protected: protected:
...@@ -327,8 +325,7 @@ class OOXMLFastContextHandlerValue : ...@@ -327,8 +325,7 @@ class OOXMLFastContextHandlerValue :
public OOXMLFastContextHandler public OOXMLFastContextHandler
{ {
public: public:
OOXMLFastContextHandlerValue explicit OOXMLFastContextHandlerValue(OOXMLFastContextHandler * pContext);
(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFastContextHandlerValue(); virtual ~OOXMLFastContextHandlerValue();
void setValue(OOXMLValue::Pointer_t pValue); void setValue(OOXMLValue::Pointer_t pValue);
...@@ -351,7 +348,7 @@ protected: ...@@ -351,7 +348,7 @@ protected:
class OOXMLFastContextHandlerTable : public OOXMLFastContextHandler class OOXMLFastContextHandlerTable : public OOXMLFastContextHandler
{ {
public: public:
OOXMLFastContextHandlerTable(OOXMLFastContextHandler * pContext); explicit OOXMLFastContextHandlerTable(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFastContextHandlerTable(); virtual ~OOXMLFastContextHandlerTable();
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext (Token_t Element, virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext (Token_t Element,
...@@ -376,7 +373,7 @@ protected: ...@@ -376,7 +373,7 @@ protected:
class OOXMLFastContextHandlerXNote : public OOXMLFastContextHandlerProperties class OOXMLFastContextHandlerXNote : public OOXMLFastContextHandlerProperties
{ {
public: public:
OOXMLFastContextHandlerXNote(OOXMLFastContextHandler * pContext); explicit OOXMLFastContextHandlerXNote(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFastContextHandlerXNote(); virtual ~OOXMLFastContextHandlerXNote();
void checkId(OOXMLValue::Pointer_t pValue); void checkId(OOXMLValue::Pointer_t pValue);
...@@ -402,8 +399,7 @@ private: ...@@ -402,8 +399,7 @@ private:
class OOXMLFastContextHandlerTextTableCell : public OOXMLFastContextHandler class OOXMLFastContextHandlerTextTableCell : public OOXMLFastContextHandler
{ {
public: public:
OOXMLFastContextHandlerTextTableCell explicit OOXMLFastContextHandlerTextTableCell(OOXMLFastContextHandler * pContext);
(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFastContextHandlerTextTableCell(); virtual ~OOXMLFastContextHandlerTextTableCell();
virtual std::string getType() const SAL_OVERRIDE { return "TextTableCell"; } virtual std::string getType() const SAL_OVERRIDE { return "TextTableCell"; }
...@@ -415,8 +411,7 @@ public: ...@@ -415,8 +411,7 @@ public:
class OOXMLFastContextHandlerTextTableRow : public OOXMLFastContextHandler class OOXMLFastContextHandlerTextTableRow : public OOXMLFastContextHandler
{ {
public: public:
OOXMLFastContextHandlerTextTableRow explicit OOXMLFastContextHandlerTextTableRow(OOXMLFastContextHandler * pContext);
(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFastContextHandlerTextTableRow(); virtual ~OOXMLFastContextHandlerTextTableRow();
virtual std::string getType() const SAL_OVERRIDE { return "TextTableRow"; } virtual std::string getType() const SAL_OVERRIDE { return "TextTableRow"; }
...@@ -431,8 +426,7 @@ private: ...@@ -431,8 +426,7 @@ private:
class OOXMLFastContextHandlerTextTable : public OOXMLFastContextHandler class OOXMLFastContextHandlerTextTable : public OOXMLFastContextHandler
{ {
public: public:
OOXMLFastContextHandlerTextTable explicit OOXMLFastContextHandlerTextTable(OOXMLFastContextHandler * pContext);
(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFastContextHandlerTextTable(); virtual ~OOXMLFastContextHandlerTextTable();
...@@ -453,8 +447,7 @@ private: ...@@ -453,8 +447,7 @@ private:
bool m_bShapeStarted; bool m_bShapeStarted;
public: public:
explicit OOXMLFastContextHandlerShape explicit OOXMLFastContextHandlerShape(OOXMLFastContextHandler * pContext);
(OOXMLFastContextHandler * pContext);
virtual ~OOXMLFastContextHandlerShape(); virtual ~OOXMLFastContextHandlerShape();
virtual std::string getType() const SAL_OVERRIDE { return "Shape"; } virtual std::string getType() const SAL_OVERRIDE { return "Shape"; }
......
...@@ -189,7 +189,7 @@ class OOXMLPropertySetValue : public OOXMLValue ...@@ -189,7 +189,7 @@ class OOXMLPropertySetValue : public OOXMLValue
{ {
OOXMLPropertySet::Pointer_t mpPropertySet; OOXMLPropertySet::Pointer_t mpPropertySet;
public: public:
OOXMLPropertySetValue(OOXMLPropertySet::Pointer_t pPropertySet); explicit OOXMLPropertySetValue(OOXMLPropertySet::Pointer_t pPropertySet);
virtual ~OOXMLPropertySetValue(); virtual ~OOXMLPropertySetValue();
virtual writerfilter::Reference<Properties>::Pointer_t getProperties() SAL_OVERRIDE; virtual writerfilter::Reference<Properties>::Pointer_t getProperties() SAL_OVERRIDE;
...@@ -301,7 +301,7 @@ class OOXMLPropertySetEntryToString : public Properties ...@@ -301,7 +301,7 @@ class OOXMLPropertySetEntryToString : public Properties
OUString mStr; OUString mStr;
public: public:
OOXMLPropertySetEntryToString(Id nId); explicit OOXMLPropertySetEntryToString(Id nId);
virtual ~OOXMLPropertySetEntryToString(); virtual ~OOXMLPropertySetEntryToString();
virtual void sprm(Sprm & rSprm) SAL_OVERRIDE; virtual void sprm(Sprm & rSprm) SAL_OVERRIDE;
...@@ -315,7 +315,7 @@ class OOXMLPropertySetEntryToInteger : public Properties ...@@ -315,7 +315,7 @@ class OOXMLPropertySetEntryToInteger : public Properties
Id mnId; Id mnId;
int mnValue; int mnValue;
public: public:
OOXMLPropertySetEntryToInteger(Id nId); explicit OOXMLPropertySetEntryToInteger(Id nId);
virtual ~OOXMLPropertySetEntryToInteger(); virtual ~OOXMLPropertySetEntryToInteger();
virtual void sprm(Sprm & rSprm) SAL_OVERRIDE; virtual void sprm(Sprm & rSprm) SAL_OVERRIDE;
...@@ -329,7 +329,7 @@ class OOXMLPropertySetEntryToBool : public Properties ...@@ -329,7 +329,7 @@ class OOXMLPropertySetEntryToBool : public Properties
Id mnId; Id mnId;
bool mValue; bool mValue;
public: public:
OOXMLPropertySetEntryToBool(Id nId); explicit OOXMLPropertySetEntryToBool(Id nId);
virtual ~OOXMLPropertySetEntryToBool(); virtual ~OOXMLPropertySetEntryToBool();
virtual void sprm(Sprm & rSprm) SAL_OVERRIDE; virtual void sprm(Sprm & rSprm) SAL_OVERRIDE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment