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 /writerfilter | |
parent | Replace List with std::vector< PPTTextSpecInfo* > (diff) | |
download | core-88d538c6e3fb2585d392adbb032ece73a3cc0b36.tar.gz core-88d538c6e3fb2585d392adbb032ece73a3cc0b36.zip |
Some cppcheck cleaning
Diffstat (limited to 'writerfilter')
4 files changed, 8 insertions, 8 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_) { |