diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-06-12 17:56:38 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-06-12 17:56:38 +0200 |
commit | 88d538c6e3fb2585d392adbb032ece73a3cc0b36 (patch) | |
tree | 529d253e4174683d1ac3692c57b65eb392b05e99 | |
parent | Replace List with std::vector< PPTTextSpecInfo* > (diff) | |
download | core-88d538c6e3fb2585d392adbb032ece73a3cc0b36.tar.gz core-88d538c6e3fb2585d392adbb032ece73a3cc0b36.zip |
Some cppcheck cleaning
10 files changed, 17 insertions, 13 deletions
diff --git a/writerfilter/source/resourcemodel/resourcemodel.cxx b/writerfilter/source/resourcemodel/resourcemodel.cxx index b24ad8d76c85..7feab27161c9 100644 --- a/writerfilter/source/resourcemodel/resourcemodel.cxx +++ b/writerfilter/source/resourcemodel/resourcemodel.cxx @@ -383,7 +383,7 @@ void WW8StreamHandler::table(Id name, writerfilter::Reference<Table>::Pointer_t { ref->resolve(aHandler); } - catch (Exception e) + catch (Exception &e) { output.addItem("<exception>" + e.getText() + "</exception>"); } @@ -442,7 +442,7 @@ void WW8PropertiesHandler::attribute(Id name, Value & val) { pProps->resolve(*this); } - catch (ExceptionOutOfBounds e) + catch (ExceptionOutOfBounds) { } @@ -459,7 +459,7 @@ void WW8PropertiesHandler::attribute(Id name, Value & val) pStream->resolve(aHandler); } - catch (ExceptionOutOfBounds e) + catch (ExceptionOutOfBounds) { } } @@ -474,7 +474,7 @@ void WW8PropertiesHandler::attribute(Id name, Value & val) pBinObj->resolve(aHandler); } - catch (ExceptionOutOfBounds e) + catch (ExceptionOutOfBounds) { } } @@ -539,7 +539,7 @@ void WW8TableHandler::entry(int /*pos*/, { ref->resolve(aHandler); } - catch (Exception e) + catch (Exception &e) { output.addItem("<exception>" + e.getText() + "</exception>"); output.addItem("</tableentry>"); diff --git a/writerfilter/unocomponent/debugservices/doctok/DocTokAnalyzeService.cxx b/writerfilter/unocomponent/debugservices/doctok/DocTokAnalyzeService.cxx index 5ba20a706547..55f66b551a75 100644 --- a/writerfilter/unocomponent/debugservices/doctok/DocTokAnalyzeService.cxx +++ b/writerfilter/unocomponent/debugservices/doctok/DocTokAnalyzeService.cxx @@ -231,7 +231,7 @@ sal_Int32 SAL_CALL AnalyzeService::run xInputStream->closeInput(); } - catch (Exception e) + catch (Exception &e) { fprintf(stdout, "<exception>%s</exception>\n", e.getText().c_str()); diff --git a/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx b/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx index b4c977943935..a43b2ba1a683 100644 --- a/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx +++ b/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx @@ -240,7 +240,7 @@ class MyRtfScannerHandler : public writerfilter::rtftok::RTFScannerHandler public: 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_), xFileAccess(xFileAccess_), xStorage(xStorage_) diff --git a/writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx b/writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx index 8214dc240ffa..25f3a11f2a84 100644 --- a/writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx +++ b/writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx @@ -169,7 +169,7 @@ class XmlRtfScannerHandler : public writerfilter::rtftok::RTFScannerHandler public: 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_), xFileAccess(xFileAccess_) { diff --git a/writerperfect/source/filter/ListStyle.cxx b/writerperfect/source/filter/ListStyle.cxx index e59ad53f91d0..f9720b9010c4 100644 --- a/writerperfect/source/filter/ListStyle.cxx +++ b/writerperfect/source/filter/ListStyle.cxx @@ -134,6 +134,7 @@ void UnorderedListLevelStyle::write(OdfDocumentHandler *pHandler, int iLevel) co ListStyle::ListStyle(const char *psName, const int iListID) : Style(psName), + miNumListLevels(0), miListID(iListID) { for (int i=0; i<WP6_NUM_LIST_LEVELS; i++) diff --git a/writerperfect/source/filter/OdtGenerator.cxx b/writerperfect/source/filter/OdtGenerator.cxx index ab7f634af660..1ef6371a8a9b 100644 --- a/writerperfect/source/filter/OdtGenerator.cxx +++ b/writerperfect/source/filter/OdtGenerator.cxx @@ -198,6 +198,7 @@ public: }; OdtGeneratorPrivate::OdtGeneratorPrivate(OdfDocumentHandler *pHandler, const OdfStreamType streamType) : + mpInput(NULL), mpHandler(pHandler), mbUsed(false), mWriterDocumentStates(), @@ -208,7 +209,9 @@ OdtGeneratorPrivate::OdtGeneratorPrivate(OdfDocumentHandler *pHandler, const Odf mpCurrentPageSpan(NULL), miNumPageStyles(0), miObjectNumber(0), - mxStreamType(streamType) + mpCurrentTableStyle(NULL), + mxStreamType(streamType), + mpPassword(NULL) { mWriterDocumentStates.push(WriterDocumentState()); mWriterListStates.push(WriterListState()); diff --git a/writerperfect/source/vsdimp/VisioImportFilter.hxx b/writerperfect/source/vsdimp/VisioImportFilter.hxx index 6cf46b71068b..7bfa5e8bedf1 100644 --- a/writerperfect/source/vsdimp/VisioImportFilter.hxx +++ b/writerperfect/source/vsdimp/VisioImportFilter.hxx @@ -68,7 +68,7 @@ protected: public: VisioImportFilter( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rxMSF) - : mxMSF( rxMSF ) {} + : mxMSF( rxMSF ), meType((FilterType)0) {} virtual ~VisioImportFilter() {} // XFilter diff --git a/writerperfect/source/wpdimp/WordPerfectImportFilter.hxx b/writerperfect/source/wpdimp/WordPerfectImportFilter.hxx index 50b995ff70bf..9f73d8f231d1 100644 --- a/writerperfect/source/wpdimp/WordPerfectImportFilter.hxx +++ b/writerperfect/source/wpdimp/WordPerfectImportFilter.hxx @@ -73,7 +73,7 @@ protected: public: WordPerfectImportFilter( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rxMSF) - : mxMSF( rxMSF ) {} + : mxMSF( rxMSF ), meType((FilterType)0) {} virtual ~WordPerfectImportFilter() {} // XFilter diff --git a/writerperfect/source/wpgimp/WPGImportFilter.hxx b/writerperfect/source/wpgimp/WPGImportFilter.hxx index bab1fd474f3e..2b5385103fb4 100644 --- a/writerperfect/source/wpgimp/WPGImportFilter.hxx +++ b/writerperfect/source/wpgimp/WPGImportFilter.hxx @@ -68,7 +68,7 @@ protected: public: WPGImportFilter( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rxMSF) - : mxMSF( rxMSF ) {} + : mxMSF( rxMSF ), meType((FilterType)0) {} virtual ~WPGImportFilter() {} // XFilter diff --git a/xmerge/source/activesync/XMergeSync.cpp b/xmerge/source/activesync/XMergeSync.cpp index 3edc4c94a0e7..4d346ee690e9 100644 --- a/xmerge/source/activesync/XMergeSync.cpp +++ b/xmerge/source/activesync/XMergeSync.cpp @@ -815,7 +815,7 @@ STDAPI DllUnregisterServer() ////////////////////////////////////////////////////////////////////// // CXMergeSyncModule methods ////////////////////////////////////////////////////////////////////// -CXMergeSyncModule::CXMergeSyncModule () +CXMergeSyncModule::CXMergeSyncModule () : m_lLocks(0), m_lObjs(0) { } |