Kaydet (Commit) 88d538c6 authored tarafından Julien Nabet's avatar Julien Nabet

Some cppcheck cleaning

üst 22085914
...@@ -383,7 +383,7 @@ void WW8StreamHandler::table(Id name, writerfilter::Reference<Table>::Pointer_t ...@@ -383,7 +383,7 @@ void WW8StreamHandler::table(Id name, writerfilter::Reference<Table>::Pointer_t
{ {
ref->resolve(aHandler); ref->resolve(aHandler);
} }
catch (Exception e) catch (Exception &e)
{ {
output.addItem("<exception>" + e.getText() + "</exception>"); output.addItem("<exception>" + e.getText() + "</exception>");
} }
...@@ -442,7 +442,7 @@ void WW8PropertiesHandler::attribute(Id name, Value & val) ...@@ -442,7 +442,7 @@ void WW8PropertiesHandler::attribute(Id name, Value & val)
{ {
pProps->resolve(*this); pProps->resolve(*this);
} }
catch (ExceptionOutOfBounds e) catch (ExceptionOutOfBounds)
{ {
} }
...@@ -459,7 +459,7 @@ void WW8PropertiesHandler::attribute(Id name, Value & val) ...@@ -459,7 +459,7 @@ void WW8PropertiesHandler::attribute(Id name, Value & val)
pStream->resolve(aHandler); pStream->resolve(aHandler);
} }
catch (ExceptionOutOfBounds e) catch (ExceptionOutOfBounds)
{ {
} }
} }
...@@ -474,7 +474,7 @@ void WW8PropertiesHandler::attribute(Id name, Value & val) ...@@ -474,7 +474,7 @@ void WW8PropertiesHandler::attribute(Id name, Value & val)
pBinObj->resolve(aHandler); pBinObj->resolve(aHandler);
} }
catch (ExceptionOutOfBounds e) catch (ExceptionOutOfBounds)
{ {
} }
} }
...@@ -539,7 +539,7 @@ void WW8TableHandler::entry(int /*pos*/, ...@@ -539,7 +539,7 @@ void WW8TableHandler::entry(int /*pos*/,
{ {
ref->resolve(aHandler); ref->resolve(aHandler);
} }
catch (Exception e) catch (Exception &e)
{ {
output.addItem("<exception>" + e.getText() + "</exception>"); output.addItem("<exception>" + e.getText() + "</exception>");
output.addItem("</tableentry>"); output.addItem("</tableentry>");
......
...@@ -231,7 +231,7 @@ sal_Int32 SAL_CALL AnalyzeService::run ...@@ -231,7 +231,7 @@ sal_Int32 SAL_CALL AnalyzeService::run
xInputStream->closeInput(); xInputStream->closeInput();
} }
catch (Exception e) catch (Exception &e)
{ {
fprintf(stdout, "<exception>%s</exception>\n", fprintf(stdout, "<exception>%s</exception>\n",
e.getText().c_str()); e.getText().c_str());
......
...@@ -240,7 +240,7 @@ class MyRtfScannerHandler : public writerfilter::rtftok::RTFScannerHandler ...@@ -240,7 +240,7 @@ class MyRtfScannerHandler : public writerfilter::rtftok::RTFScannerHandler
public: public:
MyRtfScannerHandler(uno::Reference<lang::XMultiServiceFactory> &xServiceFactory_, uno::Reference<com::sun::star::ucb::XSimpleFileAccess> &xFileAccess_, uno::Reference<embed::XStorage> &xStorage_) : MyRtfScannerHandler(uno::Reference<lang::XMultiServiceFactory> &xServiceFactory_, uno::Reference<com::sun::star::ucb::XSimpleFileAccess> &xFileAccess_, uno::Reference<embed::XStorage> &xStorage_) :
objDataLevel(0), numOfOLEs(0), objDataLevel(0), numOfOLEs(0),hb(0), numOfOLEChars(0),
xServiceFactory(xServiceFactory_), xServiceFactory(xServiceFactory_),
xFileAccess(xFileAccess_), xFileAccess(xFileAccess_),
xStorage(xStorage_) xStorage(xStorage_)
......
...@@ -169,7 +169,7 @@ class XmlRtfScannerHandler : public writerfilter::rtftok::RTFScannerHandler ...@@ -169,7 +169,7 @@ class XmlRtfScannerHandler : public writerfilter::rtftok::RTFScannerHandler
public: public:
XmlRtfScannerHandler(uno::Reference<lang::XMultiServiceFactory> &xServiceFactory_, uno::Reference<com::sun::star::ucb::XSimpleFileAccess> &xFileAccess_) : XmlRtfScannerHandler(uno::Reference<lang::XMultiServiceFactory> &xServiceFactory_, uno::Reference<com::sun::star::ucb::XSimpleFileAccess> &xFileAccess_) :
objDataLevel(0), numOfOLEs(0), objDataLevel(0), numOfOLEs(0),hb(0),numOfOLEChars(0),
xServiceFactory(xServiceFactory_), xServiceFactory(xServiceFactory_),
xFileAccess(xFileAccess_) xFileAccess(xFileAccess_)
{ {
......
...@@ -134,6 +134,7 @@ void UnorderedListLevelStyle::write(OdfDocumentHandler *pHandler, int iLevel) co ...@@ -134,6 +134,7 @@ void UnorderedListLevelStyle::write(OdfDocumentHandler *pHandler, int iLevel) co
ListStyle::ListStyle(const char *psName, const int iListID) : ListStyle::ListStyle(const char *psName, const int iListID) :
Style(psName), Style(psName),
miNumListLevels(0),
miListID(iListID) miListID(iListID)
{ {
for (int i=0; i<WP6_NUM_LIST_LEVELS; i++) for (int i=0; i<WP6_NUM_LIST_LEVELS; i++)
......
...@@ -198,6 +198,7 @@ public: ...@@ -198,6 +198,7 @@ public:
}; };
OdtGeneratorPrivate::OdtGeneratorPrivate(OdfDocumentHandler *pHandler, const OdfStreamType streamType) : OdtGeneratorPrivate::OdtGeneratorPrivate(OdfDocumentHandler *pHandler, const OdfStreamType streamType) :
mpInput(NULL),
mpHandler(pHandler), mpHandler(pHandler),
mbUsed(false), mbUsed(false),
mWriterDocumentStates(), mWriterDocumentStates(),
...@@ -208,7 +209,9 @@ OdtGeneratorPrivate::OdtGeneratorPrivate(OdfDocumentHandler *pHandler, const Odf ...@@ -208,7 +209,9 @@ OdtGeneratorPrivate::OdtGeneratorPrivate(OdfDocumentHandler *pHandler, const Odf
mpCurrentPageSpan(NULL), mpCurrentPageSpan(NULL),
miNumPageStyles(0), miNumPageStyles(0),
miObjectNumber(0), miObjectNumber(0),
mxStreamType(streamType) mpCurrentTableStyle(NULL),
mxStreamType(streamType),
mpPassword(NULL)
{ {
mWriterDocumentStates.push(WriterDocumentState()); mWriterDocumentStates.push(WriterDocumentState());
mWriterListStates.push(WriterListState()); mWriterListStates.push(WriterListState());
......
...@@ -68,7 +68,7 @@ protected: ...@@ -68,7 +68,7 @@ protected:
public: public:
VisioImportFilter( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rxMSF) VisioImportFilter( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rxMSF)
: mxMSF( rxMSF ) {} : mxMSF( rxMSF ), meType((FilterType)0) {}
virtual ~VisioImportFilter() {} virtual ~VisioImportFilter() {}
// XFilter // XFilter
......
...@@ -73,7 +73,7 @@ protected: ...@@ -73,7 +73,7 @@ protected:
public: public:
WordPerfectImportFilter( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rxMSF) WordPerfectImportFilter( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rxMSF)
: mxMSF( rxMSF ) {} : mxMSF( rxMSF ), meType((FilterType)0) {}
virtual ~WordPerfectImportFilter() {} virtual ~WordPerfectImportFilter() {}
// XFilter // XFilter
......
...@@ -68,7 +68,7 @@ protected: ...@@ -68,7 +68,7 @@ protected:
public: public:
WPGImportFilter( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rxMSF) WPGImportFilter( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rxMSF)
: mxMSF( rxMSF ) {} : mxMSF( rxMSF ), meType((FilterType)0) {}
virtual ~WPGImportFilter() {} virtual ~WPGImportFilter() {}
// XFilter // XFilter
......
...@@ -815,7 +815,7 @@ STDAPI DllUnregisterServer() ...@@ -815,7 +815,7 @@ STDAPI DllUnregisterServer()
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
// CXMergeSyncModule methods // CXMergeSyncModule methods
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
CXMergeSyncModule::CXMergeSyncModule () CXMergeSyncModule::CXMergeSyncModule () : m_lLocks(0), m_lObjs(0)
{ {
} }
......
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