[Libreoffice-commits] .: writerfilter/source writerfilter/unocomponent writerperfect/source xmerge/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sun Jun 12 08:57:03 PDT 2011


 writerfilter/source/resourcemodel/resourcemodel.cxx                     |   10 +++++-----
 writerfilter/unocomponent/debugservices/doctok/DocTokAnalyzeService.cxx |    2 +-
 writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx   |    2 +-
 writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx           |    2 +-
 writerperfect/source/filter/ListStyle.cxx                               |    1 +
 writerperfect/source/filter/OdtGenerator.cxx                            |    5 ++++-
 writerperfect/source/vsdimp/VisioImportFilter.hxx                       |    2 +-
 writerperfect/source/wpdimp/WordPerfectImportFilter.hxx                 |    2 +-
 writerperfect/source/wpgimp/WPGImportFilter.hxx                         |    2 +-
 xmerge/source/activesync/XMergeSync.cpp                                 |    2 +-
 10 files changed, 17 insertions(+), 13 deletions(-)

New commits:
commit 3d4dbb68ba748abbd94cd771c675b80d23d990fb
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Jun 12 17:56:38 2011 +0200

    Some cppcheck cleaning

diff --git a/writerfilter/source/resourcemodel/resourcemodel.cxx b/writerfilter/source/resourcemodel/resourcemodel.cxx
index 0926215..3eb53fb 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 8361847..dd9ea57 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 5081dae..049ff2c 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 b9e58e1..8c47317 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 e59ad53..f9720b9 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 ab7f634..1ef6371 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 6cf46b7..7bfa5e8 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 2e8a2d5..970ade1 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 bab1fd4..2b53851 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 119e0ad..6fa2a41 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)
 {
 }
 


More information about the Libreoffice-commits mailing list