[Libreoffice-commits] .: binfilter/bf_basic binfilter/bf_forms binfilter/bf_sc binfilter/bf_sw binfilter/bf_xmloff binfilter/inc

Stephan Bergmann sbergmann at kemper.freedesktop.org
Wed Mar 14 05:32:43 PDT 2012


 binfilter/bf_basic/source/inc/sbintern.hxx                   |    1 
 binfilter/bf_forms/source/inc/InterfaceContainer.hxx         |    3 +-
 binfilter/bf_forms/source/inc/property.hxx                   |    2 +
 binfilter/bf_sc/source/core/tool/sc_interpr3.cxx             |   13 ++++++++
 binfilter/bf_sc/source/filter/xml/XMLStylesExportHelper.hxx  |    6 ++--
 binfilter/bf_sw/source/core/inc/flowfrm.hxx                  |    2 +
 binfilter/bf_sw/source/core/inc/txmsrt.hxx                   |   16 ++++++-----
 binfilter/bf_sw/source/core/txtnode/sw_fntcap.cxx            |    9 ++++++
 binfilter/bf_sw/source/core/unocore/sw_unoframe.cxx          |    8 ++---
 binfilter/bf_sw/source/filter/sw6/sw6file.hxx                |    2 -
 binfilter/bf_xmloff/source/chart/MultiPropertySetHandler.hxx |    4 ++
 binfilter/bf_xmloff/source/forms/callbacks.hxx               |   15 ++++++++++
 binfilter/bf_xmloff/source/forms/elementexport.hxx           |    8 +++--
 binfilter/bf_xmloff/source/forms/eventimport.hxx             |    2 +
 binfilter/inc/bf_basic/basmgr.hxx                            |    3 ++
 binfilter/inc/bf_basic/sbxfac.hxx                            |    1 
 binfilter/inc/bf_goodies/b3dlight.hxx                        |    4 ++
 binfilter/inc/bf_goodies/b3dtrans.hxx                        |    6 ++++
 binfilter/inc/bf_goodies/matril3d.hxx                        |    2 +
 binfilter/inc/bf_sfx2/cfgitem.hxx                            |    7 ++--
 binfilter/inc/bf_sfx2/evntconf.hxx                           |    2 +
 binfilter/inc/bf_so3/ipenv.hxx                               |    3 ++
 binfilter/inc/bf_so3/transprt.hxx                            |    3 ++
 binfilter/inc/bf_starmath/utility.hxx                        |    5 +--
 binfilter/inc/bf_svtools/itemprop.hxx                        |    2 +
 binfilter/inc/bf_svtools/wallitem.hxx                        |    1 
 binfilter/inc/bf_svx/camera3d.hxx                            |    2 +
 binfilter/inc/bf_svx/fmdmod.hxx                              |    2 +
 binfilter/inc/bf_svx/svdetc.hxx                              |    1 
 binfilter/inc/bf_svx/unomaster.hxx                           |    3 ++
 binfilter/inc/bf_svx/unomod.hxx                              |    2 +
 binfilter/inc/bf_svx/unoprov.hxx                             |    3 ++
 binfilter/inc/bf_svx/viewpt3d.hxx                            |    2 +
 binfilter/inc/bf_sw/TextCursorHelper.hxx                     |    7 +++-
 binfilter/inc/bf_sw/cellfml.hxx                              |    2 +
 binfilter/inc/bf_sw/index.hxx                                |    2 -
 binfilter/inc/bf_sw/printdata.hxx                            |    2 +
 binfilter/inc/bf_sw/swcrsr.hxx                               |    3 ++
 binfilter/inc/bf_sw/unocoll.hxx                              |    2 +
 binfilter/inc/bf_sw/viscrs.hxx                               |    2 -
 binfilter/inc/bf_xmloff/txtvfldi.hxx                         |    2 +
 41 files changed, 139 insertions(+), 28 deletions(-)

New commits:
commit c599fdba10c210ecf3f94119cb1138f3846320df
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Mar 14 13:29:56 2012 +0100

    Adapted to -Wnon-virtual-dtor enabled for GCC 4.6

diff --git a/binfilter/bf_basic/source/inc/sbintern.hxx b/binfilter/bf_basic/source/inc/sbintern.hxx
index 1ce571a..2d46bab 100644
--- a/binfilter/bf_basic/source/inc/sbintern.hxx
+++ b/binfilter/bf_basic/source/inc/sbintern.hxx
@@ -49,6 +49,7 @@ class SbModule;
 class SbiFactory : public SbxFactory
 {
 public:
+    virtual ~SbiFactory() {}
     virtual SbxBase* Create( UINT16 nSbxId, UINT32 = SBXCR_SBX );
     virtual SbxObject* CreateObject( const String& );
 };
diff --git a/binfilter/bf_forms/source/inc/InterfaceContainer.hxx b/binfilter/bf_forms/source/inc/InterfaceContainer.hxx
index 7203520..3ed6bb0 100644
--- a/binfilter/bf_forms/source/inc/InterfaceContainer.hxx
+++ b/binfilter/bf_forms/source/inc/InterfaceContainer.hxx
@@ -105,12 +105,13 @@ protected:
     // EventManager
     ::com::sun::star::uno::Reference< ::com::sun::star::script::XEventAttacherManager>  m_xEventAttacher;
 
-public:
     OInterfaceContainer(
         const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory,
         ::osl::Mutex& _rMutex,
         const ::com::sun::star::uno::Type& _rElementType);
 
+    ~OInterfaceContainer() {}
+
 public:
 // ::com::sun::star::io::XPersistObject
     virtual ::rtl::OUString SAL_CALL getServiceName(  ) throw(::com::sun::star::uno::RuntimeException) = 0;
diff --git a/binfilter/bf_forms/source/inc/property.hxx b/binfilter/bf_forms/source/inc/property.hxx
index 6ad0c21..c7d864d 100644
--- a/binfilter/bf_forms/source/inc/property.hxx
+++ b/binfilter/bf_forms/source/inc/property.hxx
@@ -103,6 +103,8 @@ private:
 class ConcretInfoService : public ::comphelper::IPropertyInfoService
 {
 public:
+    virtual ~ConcretInfoService() {}
+
     virtual sal_Int32 getPreferedPropertyId(const ::rtl::OUString& _rName);
 };
 
diff --git a/binfilter/bf_sc/source/core/tool/sc_interpr3.cxx b/binfilter/bf_sc/source/core/tool/sc_interpr3.cxx
index f473906..624643a 100644
--- a/binfilter/bf_sc/source/core/tool/sc_interpr3.cxx
+++ b/binfilter/bf_sc/source/core/tool/sc_interpr3.cxx
@@ -55,6 +55,9 @@ class ScDistFunc
 {
 public:
     virtual double GetValue(double x) const = 0;
+
+protected:
+    ~ScDistFunc() {}
 };
 
 //  iteration for inverse distributions
@@ -1069,6 +1072,8 @@ public:
             ScGammaDistFunction( ScInterpreter& rI, double fpVal, double fAlphaVal, double fBetaVal ) :
                 rInt(rI), fp(fpVal), fAlpha(fAlphaVal), fBeta(fBetaVal) {}
 
+    virtual ~ScGammaDistFunction() {}
+
     double  GetValue( double x ) const  { return fp - rInt.GetGammaDist(x, fAlpha, fBeta); }
 };
 
@@ -1107,6 +1112,8 @@ public:
             ScBetaDistFunction( ScInterpreter& rI, double fpVal, double fAlphaVal, double fBetaVal ) :
                 rInt(rI), fp(fpVal), fAlpha(fAlphaVal), fBeta(fBetaVal) {}
 
+    virtual ~ScBetaDistFunction() {}
+
     double  GetValue( double x ) const  { return fp - rInt.GetBetaDist(x, fAlpha, fBeta); }
 };
 
@@ -1163,6 +1170,8 @@ public:
             ScTDistFunction( ScInterpreter& rI, double fpVal, double fDFVal ) :
                 rInt(rI), fp(fpVal), fDF(fDFVal) {}
 
+    virtual ~ScTDistFunction() {}
+
     double  GetValue( double x ) const  { return fp - 2 * rInt.GetTDist(x, fDF); }
 };
 
@@ -1195,6 +1204,8 @@ public:
             ScFDistFunction( ScInterpreter& rI, double fpVal, double fF1Val, double fF2Val ) :
                 rInt(rI), fp(fpVal), fF1(fF1Val), fF2(fF2Val) {}
 
+    virtual ~ScFDistFunction() {}
+
     double  GetValue( double x ) const  { return fp - rInt.GetFDist(x, fF1, fF2); }
 };
 
@@ -1228,6 +1239,8 @@ public:
             ScChiDistFunction( ScInterpreter& rI, double fpVal, double fDFVal ) :
                 rInt(rI), fp(fpVal), fDF(fDFVal) {}
 
+    virtual ~ScChiDistFunction() {}
+
     double  GetValue( double x ) const  { return fp - rInt.GetChiDist(x, fDF); }
 };
 
diff --git a/binfilter/bf_sc/source/filter/xml/XMLStylesExportHelper.hxx b/binfilter/bf_sc/source/filter/xml/XMLStylesExportHelper.hxx
index cf923ff..bf008e1 100644
--- a/binfilter/bf_sc/source/filter/xml/XMLStylesExportHelper.hxx
+++ b/binfilter/bf_sc/source/filter/xml/XMLStylesExportHelper.hxx
@@ -243,7 +243,7 @@ class ScColumnRowStylesBase
 
 public:
     ScColumnRowStylesBase();
-    ~ScColumnRowStylesBase();
+    virtual ~ScColumnRowStylesBase();
 
     virtual void AddNewTable(const sal_Int16 nTable, const sal_Int32 nFields) = 0;
     sal_Int32 AddStyleName(::rtl::OUString* pString);
@@ -270,7 +270,7 @@ class ScColumnStyles : public ScColumnRowStylesBase
 
 public:
     ScColumnStyles();
-    ~ScColumnStyles();
+    virtual ~ScColumnStyles();
 
     virtual void AddNewTable(const sal_Int16 nTable, const sal_Int32 nFields);
     sal_Int32 GetStyleNameIndex(const sal_Int16 nTable, const sal_Int32 nField,
@@ -288,7 +288,7 @@ class ScRowStyles : public ScColumnRowStylesBase
 
 public:
     ScRowStyles();
-    ~ScRowStyles();
+    virtual ~ScRowStyles();
 
     virtual void AddNewTable(const sal_Int16 nTable, const sal_Int32 nFields);
     sal_Int32 GetStyleNameIndex(const sal_Int16 nTable, const sal_Int32 nField);
diff --git a/binfilter/bf_sw/source/core/inc/flowfrm.hxx b/binfilter/bf_sw/source/core/inc/flowfrm.hxx
index 27a8d81..9feae3f 100644
--- a/binfilter/bf_sw/source/core/inc/flowfrm.hxx
+++ b/binfilter/bf_sw/source/core/inc/flowfrm.hxx
@@ -124,6 +124,8 @@ protected:
 public:
     SwFlowFrm( SwFrm &rFrm );
 
+    virtual ~SwFlowFrm() {}
+
     const SwFrm *GetFrm() const            { return &rThis; }
           SwFrm *GetFrm()                  { return &rThis; }
 
diff --git a/binfilter/bf_sw/source/core/inc/txmsrt.hxx b/binfilter/bf_sw/source/core/inc/txmsrt.hxx
index f82f531..0ebbfdc 100644
--- a/binfilter/bf_sw/source/core/inc/txmsrt.hxx
+++ b/binfilter/bf_sw/source/core/inc/txmsrt.hxx
@@ -115,15 +115,11 @@ struct SwTOXSortTabBase
      USHORT nType;
     static USHORT nOpt;
 
-    SwTOXSortTabBase( TOXSortType nType,
-                      const SwCntntNode* pTOXSrc,
-                      const SwTxtTOXMark* pTxtMark,
-                      const SwTOXInternational* pIntl,
-                      const ::com::sun::star::lang::Locale* pLocale = NULL );
-
     USHORT  GetType() const         { return nType; }
     USHORT  GetOptions() const      { return nOpt; }
 
+    virtual ~SwTOXSortTabBase() {}
+
     virtual void    FillText( SwTxtNode& rNd, const SwIndex& rInsPos, USHORT nAuthField = 0) const;
     virtual USHORT  GetLevel()  const = 0;
     virtual BOOL    operator==( const SwTOXSortTabBase& );
@@ -134,6 +130,13 @@ struct SwTOXSortTabBase
      inline void GetTxt( String&, String& ) const;
      inline const ::com::sun::star::lang::Locale& GetLocale() const;
 
+protected:
+    SwTOXSortTabBase( TOXSortType nType,
+                      const SwCntntNode* pTOXSrc,
+                      const SwTxtTOXMark* pTxtMark,
+                      const SwTOXInternational* pIntl,
+                      const ::com::sun::star::lang::Locale* pLocale = NULL );
+
 private:
     BOOL bValidTxt;
      String sSortTxt;
@@ -183,6 +186,7 @@ private:
 
 public:
     SwTOXAuthority( const SwCntntNode& rNd, SwFmtFld& rField, const SwTOXInternational& rIntl );
+    virtual ~SwTOXAuthority() {}
     SwFmtFld& GetFldFmt() {return m_rField;}
 
     virtual BOOL    operator==( const SwTOXSortTabBase& );
diff --git a/binfilter/bf_sw/source/core/txtnode/sw_fntcap.cxx b/binfilter/bf_sw/source/core/txtnode/sw_fntcap.cxx
index eea8628..fde0201 100644
--- a/binfilter/bf_sw/source/core/txtnode/sw_fntcap.cxx
+++ b/binfilter/bf_sw/source/core/txtnode/sw_fntcap.cxx
@@ -121,6 +121,7 @@ protected:
     SwDrawTextInfo &rInf;
     SwCapitalInfo* pCapInf; // referes to additional information
                            // required by the ::Do function
+    ~SwDoCapitals() {}
 public:
     SwDoCapitals ( SwDrawTextInfo &rInfo ) : rInf( rInfo ), pCapInf( 0 ) { }
     virtual void Init( SwFntObj *pUpperFont, SwFntObj *pLowerFont ) = 0;
@@ -141,6 +142,7 @@ protected:
     Size aTxtSize;
 public:
     SwDoGetCapitalSize( SwDrawTextInfo &rInfo ) : SwDoCapitals ( rInfo ) { }
+    virtual ~SwDoGetCapitalSize() {}
     virtual void Init( SwFntObj *pUpperFont, SwFntObj *pLowerFont );
     virtual void Do();
     const Size &GetSize() const { return aTxtSize; }
@@ -203,6 +205,7 @@ public:
         , nTxtWidth( nWidth )
         , nBreak( STRING_LEN )
         { }
+    virtual ~SwDoGetCapitalBreak() {}
     xub_StrLen GetBreak() const { return nBreak; }
 };
 
@@ -226,6 +229,8 @@ public:
     SwDoDrawCapital( SwDrawTextInfo &rInfo ) :
         SwDoCapitals( rInfo )
         { }
+
+    virtual ~SwDoDrawCapital() {}
 };
 
 
@@ -258,6 +263,8 @@ public:
         , nOfst( nOfs )
         { }
 
+    virtual ~SwDoCapitalCrsrOfst() {}
+
     void DrawSpace( const Point &rPos );
     inline xub_StrLen GetCrsr(){ return nCrsr; }
 };
@@ -286,6 +293,8 @@ public:
             , nCapWidth( nCapWidth2 )
             , nOrgWidth( rInfo.GetWidth() )
         { }
+
+    virtual ~SwDoDrawStretchCapital() {}
 };
 
 /*************************************************************************
diff --git a/binfilter/bf_sw/source/core/unocore/sw_unoframe.cxx b/binfilter/bf_sw/source/core/unocore/sw_unoframe.cxx
index 7360cd4..7f1dfc6 100644
--- a/binfilter/bf_sw/source/core/unocore/sw_unoframe.cxx
+++ b/binfilter/bf_sw/source/core/unocore/sw_unoframe.cxx
@@ -145,7 +145,7 @@ public:
 
     BaseFrameProperties_Impl ( const SfxItemPropertyMap* pMap ) :
         _pMap(pMap) {}
-    ~BaseFrameProperties_Impl();
+    virtual ~BaseFrameProperties_Impl();
 
     void            SetProperty(USHORT nWID, BYTE nMemberId, uno::Any aVal);
     sal_Bool        GetProperty(USHORT nWID, BYTE nMemberId, uno::Any*& pAny );
@@ -523,7 +523,7 @@ protected:
         BaseFrameProperties_Impl(pMap){}
 public:
     SwFrameProperties_Impl();
-    ~SwFrameProperties_Impl(){}
+    virtual ~SwFrameProperties_Impl(){}
 
     virtual sal_Bool        AnyToItemSet( SwDoc* pDoc, SfxItemSet& rFrmSet, SfxItemSet& rSet, sal_Bool& rSizeFound);
 };
@@ -589,7 +589,7 @@ class SwGraphicProperties_Impl : public BaseFrameProperties_Impl
 {
 public:
     SwGraphicProperties_Impl();
-    ~SwGraphicProperties_Impl(){}
+    virtual ~SwGraphicProperties_Impl(){}
 
     virtual sal_Bool                AnyToItemSet( SwDoc* pDoc, SfxItemSet& rFrmSet, SfxItemSet& rSet, sal_Bool& rSizeFound);
 };
@@ -691,7 +691,7 @@ class SwOLEProperties_Impl : public SwFrameProperties_Impl
 public:
     SwOLEProperties_Impl() :
         SwFrameProperties_Impl(aSwMapProvider.GetPropertyMap(PROPERTY_MAP_EMBEDDED_OBJECT) ){}
-    ~SwOLEProperties_Impl(){}
+    virtual ~SwOLEProperties_Impl(){}
 
     virtual sal_Bool        AnyToItemSet( SwDoc* pDoc, SfxItemSet& rFrmSet, SfxItemSet& rSet, sal_Bool& rSizeFound);
 };
diff --git a/binfilter/bf_sw/source/filter/sw6/sw6file.hxx b/binfilter/bf_sw/source/filter/sw6/sw6file.hxx
index 4c08dd7..7b24b33 100644
--- a/binfilter/bf_sw/source/filter/sw6/sw6file.hxx
+++ b/binfilter/bf_sw/source/filter/sw6/sw6file.hxx
@@ -443,7 +443,7 @@ public:
         size_t nBufSize,             // Lesepuffer-Groesse, mu?>0 sein
         size_t nCtrSize,             // Maximale L„nge Ctrl-Zeichenkette
         ULONG *pErrno );             // Optionale Fehlernummer
-   ~Sw6File(void);                   // dtor
+    virtual ~Sw6File(void);                   // dtor
 };
 
 
diff --git a/binfilter/bf_xmloff/source/chart/MultiPropertySetHandler.hxx b/binfilter/bf_xmloff/source/chart/MultiPropertySetHandler.hxx
index 49d4c59..85d2275 100644
--- a/binfilter/bf_xmloff/source/chart/MultiPropertySetHandler.hxx
+++ b/binfilter/bf_xmloff/source/chart/MultiPropertySetHandler.hxx
@@ -61,6 +61,8 @@ public:
         :   msName (rName)
     {}
 
+    virtual ~PropertyWrapperBase() {}
+
     /** @descr  Abstract interface of a method for setting a variables
             value to that of the property.
     */
@@ -85,6 +87,8 @@ public:
             mrValue (rValue)
     {}
 
+    virtual ~PropertyWrapper() {}
+
     /** descr   Set the given value inside an Any to the variable referenced
         by the data member.
     */
diff --git a/binfilter/bf_xmloff/source/forms/callbacks.hxx b/binfilter/bf_xmloff/source/forms/callbacks.hxx
index 84e3e54..1e73885 100644
--- a/binfilter/bf_xmloff/source/forms/callbacks.hxx
+++ b/binfilter/bf_xmloff/source/forms/callbacks.hxx
@@ -64,6 +64,9 @@ namespace xmloff
 
         virtual ::rtl::OUString                             getObjectStyleName(
             const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject ) = 0;
+
+    protected:
+        ~IFormsExportContext() {}
     };
 
     //=====================================================================
@@ -93,6 +96,9 @@ namespace xmloff
         virtual void    registerControlReferences(
             const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxControl,
             const ::rtl::OUString& _rReferringControls) = 0;
+
+    protected:
+        ~IControlIdMap() {}
     };
 
     //=====================================================================
@@ -132,6 +138,9 @@ namespace xmloff
             const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxControlModel,
             const ::rtl::OUString& _rCellRangeAddress
         ) = 0;
+
+    protected:
+        ~IFormsImportContext() {}
     };
 
     //=====================================================================
@@ -144,6 +153,9 @@ namespace xmloff
             const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxElement,
             const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rEvents
             ) = 0;
+
+    protected:
+        ~IEventAttacherManager() {}
     };
 
     //=====================================================================
@@ -155,6 +167,9 @@ namespace xmloff
         virtual void registerEvents(
             const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rEvents
             ) = 0;
+
+    protected:
+        ~IEventAttacher() {}
     };
 
 //.........................................................................
diff --git a/binfilter/bf_xmloff/source/forms/elementexport.hxx b/binfilter/bf_xmloff/source/forms/elementexport.hxx
index a8afa82..4444f12 100644
--- a/binfilter/bf_xmloff/source/forms/elementexport.hxx
+++ b/binfilter/bf_xmloff/source/forms/elementexport.hxx
@@ -59,7 +59,7 @@ namespace xmloff
         OElementExport(IFormsExportContext& _rContext,
             const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxProps,
             const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rEvents);
-        ~OElementExport();
+        virtual ~OElementExport();
 
         void doExport();
 
@@ -131,7 +131,7 @@ namespace xmloff
             const ::rtl::OUString& _rControlId,
             const ::rtl::OUString& _rReferringControls,
             const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rxEvents);
-        ~OControlExport();
+        virtual ~OControlExport();
 
     protected:
         /// start the XML element
@@ -242,7 +242,7 @@ namespace xmloff
             const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxControl,
             const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rxEvents);
 
-        ~OColumnExport();
+        virtual ~OColumnExport();
 
     protected:
         // OControlExport overridables
@@ -274,6 +274,8 @@ namespace xmloff
             const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rxEvents
             );
 
+        virtual ~OFormExport() {}
+
     protected:
         virtual const sal_Char* getXMLElementName() const;
         virtual void exportSubTags();
diff --git a/binfilter/bf_xmloff/source/forms/eventimport.hxx b/binfilter/bf_xmloff/source/forms/eventimport.hxx
index d32c7c1..1e9a38e 100644
--- a/binfilter/bf_xmloff/source/forms/eventimport.hxx
+++ b/binfilter/bf_xmloff/source/forms/eventimport.hxx
@@ -75,6 +75,8 @@ namespace xmloff
         MapPropertySet2ScriptSequence   m_aEvents;
 
     public:
+        virtual ~ODefaultEventAttacherManager() {}
+
         // IEventAttacherManager
         virtual void registerEvents(
             const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxElement,
diff --git a/binfilter/inc/bf_basic/basmgr.hxx b/binfilter/inc/bf_basic/basmgr.hxx
index 14d58d8..e4352ec 100644
--- a/binfilter/inc/bf_basic/basmgr.hxx
+++ b/binfilter/inc/bf_basic/basmgr.hxx
@@ -107,6 +107,9 @@ public:
     virtual String getLibraryPassword( const String& rLibraryName ) = 0;
     virtual void clearLibraryPassword( const String& rLibraryName ) = 0;
     virtual sal_Bool hasLibraryPassword( const String& rLibraryName ) = 0;
+
+protected:
+    ~OldBasicPassword() {}
 };
 
 struct LibraryContainerInfo
diff --git a/binfilter/inc/bf_basic/sbxfac.hxx b/binfilter/inc/bf_basic/sbxfac.hxx
index 3f5b4ce..59de60f 100644
--- a/binfilter/inc/bf_basic/sbxfac.hxx
+++ b/binfilter/inc/bf_basic/sbxfac.hxx
@@ -47,6 +47,7 @@ class SbxFactory
     BOOL bHandleLast;   // TRUE: Factory soll zuletzt gefragt werden, da teuer
 public:
     SbxFactory( BOOL bLast=FALSE )  { bHandleLast = bLast; }
+    virtual ~SbxFactory() {}
     BOOL IsHandleLast( void )       { return bHandleLast; }
     virtual SbxBase* Create( UINT16 nSbxId, UINT32 = SBXCR_SBX );
     virtual SbxObject* CreateObject( const String& );
diff --git a/binfilter/inc/bf_goodies/b3dlight.hxx b/binfilter/inc/bf_goodies/b3dlight.hxx
index e4a42e7..96ea090 100644
--- a/binfilter/inc/bf_goodies/b3dlight.hxx
+++ b/binfilter/inc/bf_goodies/b3dlight.hxx
@@ -96,6 +96,8 @@ private:
 public:
     B3dLight();
 
+    virtual ~B3dLight() {}
+
     // Zugriffsfunktionen
     void SetIntensity(const Color rNew,
         Base3DMaterialValue=Base3DMaterialAmbient);
@@ -182,6 +184,8 @@ public:
     // Konstruktor
     B3dLightGroup();
 
+    virtual ~B3dLightGroup() {}
+
     // lokale Parameter des LightModels
     virtual void SetGlobalAmbientLight(const Color rNew);
     const Color GetGlobalAmbientLight();
diff --git a/binfilter/inc/bf_goodies/b3dtrans.hxx b/binfilter/inc/bf_goodies/b3dtrans.hxx
index 9fec7e2..abb0c04 100644
--- a/binfilter/inc/bf_goodies/b3dtrans.hxx
+++ b/binfilter/inc/bf_goodies/b3dtrans.hxx
@@ -144,6 +144,8 @@ private:
 public:
     B3dTransformationSet();
 
+    virtual ~B3dTransformationSet() {}
+
     // Zurueck auf Standard
     void Reset();
 
@@ -235,6 +237,8 @@ private:
 public:
     B3dViewport();
 
+    virtual ~B3dViewport() {}
+
     void SetVUV(const Vector3D& rNewVUV);
     void SetViewportValues(
         const Vector3D& rNewVRP,
@@ -272,6 +276,8 @@ public:
         double fFocLen = 35.0, double fBnkAng = 0.0,
         BOOL bUseFocLen = FALSE);
 
+    virtual ~B3dCamera() {}
+
     // Positionen
     const Vector3D& GetPosition() const { return aPosition; }
     const Vector3D& GetLookAt() const { return aLookAt; }
diff --git a/binfilter/inc/bf_goodies/matril3d.hxx b/binfilter/inc/bf_goodies/matril3d.hxx
index 2bb9b30..faac47c 100644
--- a/binfilter/inc/bf_goodies/matril3d.hxx
+++ b/binfilter/inc/bf_goodies/matril3d.hxx
@@ -85,6 +85,8 @@ private:
 public:
     B3dMaterial();
 
+    virtual ~B3dMaterial() {}
+
     // Laden/Speichern in StarView
     virtual void ReadData(SvStream& rIn);
 
diff --git a/binfilter/inc/bf_sfx2/cfgitem.hxx b/binfilter/inc/bf_sfx2/cfgitem.hxx
index 3eb37c4..a24ab9d 100644
--- a/binfilter/inc/bf_sfx2/cfgitem.hxx
+++ b/binfilter/inc/bf_sfx2/cfgitem.hxx
@@ -68,6 +68,10 @@ class SfxConfigItem
     BOOL                m_bModified : 1;
     BOOL                m_bInitialized : 1;
 
+protected:
+                        SfxConfigItem( USHORT nType, SfxConfigManager* pCfgMgr );
+                        ~SfxConfigItem();
+
 public:
 
     static String       GetStreamName( USHORT nType );
@@ -77,9 +81,6 @@ public:
                             ERR_READ
                         };
 
-                        SfxConfigItem( USHORT nType, SfxConfigManager* pCfgMgr );
-                        ~SfxConfigItem();
-
             BOOL        Initialize();
             BOOL        StoreConfig();
             void        Connect( SfxConfigManager* pMgr );
diff --git a/binfilter/inc/bf_sfx2/evntconf.hxx b/binfilter/inc/bf_sfx2/evntconf.hxx
index 4391bfd..5fb816d 100644
--- a/binfilter/inc/bf_sfx2/evntconf.hxx
+++ b/binfilter/inc/bf_sfx2/evntconf.hxx
@@ -152,6 +152,8 @@ public:
                                 SfxEventConfiguration*,
                                 SfxObjectShell* pObjSh = NULL );
 
+    virtual ~SfxEventConfigItem_Impl() {}
+
     void                    Init( SfxConfigManager* );
     virtual int             Load(SotStorage&);
     virtual BOOL            Store(SotStorage&) {return FALSE;}
diff --git a/binfilter/inc/bf_so3/ipenv.hxx b/binfilter/inc/bf_so3/ipenv.hxx
index f93d3bb..d2f27b3 100644
--- a/binfilter/inc/bf_so3/ipenv.hxx
+++ b/binfilter/inc/bf_so3/ipenv.hxx
@@ -308,6 +308,9 @@ enum PlugInMode
 struct PlugJavaRequester
 {
     virtual void *  GetJavaPeer( Window * pPlugWin ) = 0;
+
+protected:
+    ~PlugJavaRequester() {}
 };
 
 class SvPlugInObject;
diff --git a/binfilter/inc/bf_so3/transprt.hxx b/binfilter/inc/bf_so3/transprt.hxx
index 007badd..96b6e07 100644
--- a/binfilter/inc/bf_so3/transprt.hxx
+++ b/binfilter/inc/bf_so3/transprt.hxx
@@ -123,6 +123,9 @@ public:
         ULONG nNow, ULONG nEnd, SvBindStatus eStatus) = 0;
 
     virtual void OnRedirect (const String &rUrl) = 0;
+
+protected:
+    ~SvBindingTransportCallback() {}
 };
 
 /*========================================================================
diff --git a/binfilter/inc/bf_starmath/utility.hxx b/binfilter/inc/bf_starmath/utility.hxx
index a06e6b4..103501e 100644
--- a/binfilter/inc/bf_starmath/utility.hxx
+++ b/binfilter/inc/bf_starmath/utility.hxx
@@ -206,11 +206,10 @@ protected:
     void        InsertPtr(USHORT nPos, void *pItem) { SfxPtrArr::Insert(nPos, pItem); }
     void        RemovePtr(USHORT nPos, USHORT nCount = 1) { SfxPtrArr::Remove(nPos, nCount); }
 
-public:
     SmPickList(USHORT nInitSize = 0, USHORT nMaxSize = 5);
     ~SmPickList();
 
-
+public:
     void       *Get(USHORT nPos = 0) const { return GetPtr(nPos); }
 
     void       *operator [] (USHORT nPos) const { return GetPtr(nPos); }
@@ -256,7 +255,7 @@ public:
         : SmPickList(nInitSize, nMaxSize) {}
     SmFontPickList(const SmPickList& rOrig )
         : SmPickList(rOrig) {}
-    ~SmFontPickList() { Clear(); }
+    virtual ~SmFontPickList() { Clear(); }
 
 
     inline BOOL     Contains(const Font &rFont) const;
diff --git a/binfilter/inc/bf_svtools/itemprop.hxx b/binfilter/inc/bf_svtools/itemprop.hxx
index fe5a9a9..48879b4 100644
--- a/binfilter/inc/bf_svtools/itemprop.hxx
+++ b/binfilter/inc/bf_svtools/itemprop.hxx
@@ -68,6 +68,8 @@ public:
                             SfxItemPropertySet( const SfxItemPropertyMap *pMap ) :
                                 _pMap(pMap) {}
 
+    virtual ~SfxItemPropertySet() {}
+
     void getPropertyValue( const SfxItemPropertyMap& rMap,
                                             const SfxItemSet& rSet,
                                             ::com::sun::star::uno::Any& rAny) const
diff --git a/binfilter/inc/bf_svtools/wallitem.hxx b/binfilter/inc/bf_svtools/wallitem.hxx
index 56d46ca..c57c678 100644
--- a/binfilter/inc/bf_svtools/wallitem.hxx
+++ b/binfilter/inc/bf_svtools/wallitem.hxx
@@ -54,6 +54,7 @@ typedef USHORT* (*GetSvxBrushTabPageRanges)();
 class SfxBrushItemLink
 {
 public:
+    virtual ~SfxBrushItemLink() {}
     virtual Graphic GetGraphic( const String& rLink, const String& rFilter) = 0;
     virtual CreateSvxBrushTabPage GetBackgroundTabpageCreateFunc() = 0;
     virtual GetSvxBrushTabPageRanges GetBackgroundTabpageRanges() = 0;
diff --git a/binfilter/inc/bf_svx/camera3d.hxx b/binfilter/inc/bf_svx/camera3d.hxx
index 7869979..699ab5d 100644
--- a/binfilter/inc/bf_svx/camera3d.hxx
+++ b/binfilter/inc/bf_svx/camera3d.hxx
@@ -60,6 +60,8 @@ class Camera3D : public Viewport3D
              double fFocalLen = 35.0, double fBankAng = 0);
     Camera3D();
 
+    virtual ~Camera3D() {}
+
     // Anfangswerte wieder herstellen
     void Reset();
 
diff --git a/binfilter/inc/bf_svx/fmdmod.hxx b/binfilter/inc/bf_svx/fmdmod.hxx
index 1100655..41b0983 100644
--- a/binfilter/inc/bf_svx/fmdmod.hxx
+++ b/binfilter/inc/bf_svx/fmdmod.hxx
@@ -37,6 +37,8 @@ class SvxFmMSFactory : public SvxUnoDrawMSFactory
 public:
     SvxFmMSFactory() {};
 
+    virtual ~SvxFmMSFactory() {}
+
     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstance(const ::rtl::OUString& ServiceSpecifier) throw( ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException );
 };
 
diff --git a/binfilter/inc/bf_svx/svdetc.hxx b/binfilter/inc/bf_svx/svdetc.hxx
index bc8317b..54fa23b 100644
--- a/binfilter/inc/bf_svx/svdetc.hxx
+++ b/binfilter/inc/bf_svx/svdetc.hxx
@@ -148,6 +148,7 @@ public:
 class ContainerSorter {
 protected:
     Container& rCont;
+    ~ContainerSorter() {}
 private:
 #if _SOLAR__PRIVATE
     void ImpSubSort(long nL, long nR) const;
diff --git a/binfilter/inc/bf_svx/unomaster.hxx b/binfilter/inc/bf_svx/unomaster.hxx
index 525b18c..d903a1d 100644
--- a/binfilter/inc/bf_svx/unomaster.hxx
+++ b/binfilter/inc/bf_svx/unomaster.hxx
@@ -59,6 +59,9 @@ public:
     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) = 0;
 
     virtual void dispose() = 0;
+
+protected:
+    ~SvxShapeMaster() {}
 };
 
 }//end of namespace binfilter
diff --git a/binfilter/inc/bf_svx/unomod.hxx b/binfilter/inc/bf_svx/unomod.hxx
index cb4bed6..cfeb90d 100644
--- a/binfilter/inc/bf_svx/unomod.hxx
+++ b/binfilter/inc/bf_svx/unomod.hxx
@@ -42,6 +42,8 @@ class SvxUnoDrawMSFactory : public ::com::sun::star::lang::XMultiServiceFactory
 public:
     SvxUnoDrawMSFactory() throw() {};
 
+    virtual ~SvxUnoDrawMSFactory() {}
+
     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstance( const ::rtl::OUString& aServiceSpecifier ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstanceWithArguments( const ::rtl::OUString& ServiceSpecifier, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Arguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAvailableServiceNames(  ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/binfilter/inc/bf_svx/unoprov.hxx b/binfilter/inc/bf_svx/unoprov.hxx
index e1f7a31..13fb0f5 100644
--- a/binfilter/inc/bf_svx/unoprov.hxx
+++ b/binfilter/inc/bf_svx/unoprov.hxx
@@ -128,6 +128,9 @@ public:
     // helper
     static void addToSequence( ::com::sun::star::uno::Sequence< ::rtl::OUString >& rSeq,UINT16 nServices, /* sal_Char* */... ) throw();
     static sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& SupportedServices ) throw();
+
+protected:
+    ~SvxServiceInfoHelper() {}
 };
 
 /***********************************************************************
diff --git a/binfilter/inc/bf_svx/viewpt3d.hxx b/binfilter/inc/bf_svx/viewpt3d.hxx
index 0bdd06e..8eeb333 100644
--- a/binfilter/inc/bf_svx/viewpt3d.hxx
+++ b/binfilter/inc/bf_svx/viewpt3d.hxx
@@ -87,6 +87,8 @@ class Viewport3D
  public:
     Viewport3D();
 
+    virtual ~Viewport3D() {}
+
     void SetVRP(const Vector3D& rNewVRP);
     void SetVPN(const Vector3D& rNewVPN);
     void SetVUV(const Vector3D& rNewVUV);
diff --git a/binfilter/inc/bf_sw/TextCursorHelper.hxx b/binfilter/inc/bf_sw/TextCursorHelper.hxx
index 0000674..27c6089 100644
--- a/binfilter/inc/bf_sw/TextCursorHelper.hxx
+++ b/binfilter/inc/bf_sw/TextCursorHelper.hxx
@@ -37,9 +37,12 @@ class SwUnoCrsr;
 class SwPaM;
 class OTextCursorHelper : public ::cppu::ImplHelper1< ::com::sun::star::lang::XUnoTunnel>
 {
-public:
-
+protected:
     OTextCursorHelper(){}
+
+    ~OTextCursorHelper() {}
+
+public:
     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
 
     //XUnoTunnel
diff --git a/binfilter/inc/bf_sw/cellfml.hxx b/binfilter/inc/bf_sw/cellfml.hxx
index 44cce37..e6deaf5 100644
--- a/binfilter/inc/bf_sw/cellfml.hxx
+++ b/binfilter/inc/bf_sw/cellfml.hxx
@@ -98,6 +98,8 @@ protected:
 
     SwTableFormula( const String& rFormel );
 
+    ~SwTableFormula() {}
+
     String MakeFormel( SwTblCalcPara& rCalcPara ) const
     {
         return ScanString( &SwTableFormula::_MakeFormel,
diff --git a/binfilter/inc/bf_sw/index.hxx b/binfilter/inc/bf_sw/index.hxx
index a2870a9..b985e72 100644
--- a/binfilter/inc/bf_sw/index.hxx
+++ b/binfilter/inc/bf_sw/index.hxx
@@ -127,7 +127,7 @@ protected:
 public:
     SwIndexReg();
 #ifdef DBG_UTIL
-    ~SwIndexReg();
+    virtual ~SwIndexReg();
 #endif
 
     // rtti, abgeleitete moegens gleichtun oder nicht. Wenn sie es gleichtun
diff --git a/binfilter/inc/bf_sw/printdata.hxx b/binfilter/inc/bf_sw/printdata.hxx
index 8159b92..a2fd946 100644
--- a/binfilter/inc/bf_sw/printdata.hxx
+++ b/binfilter/inc/bf_sw/printdata.hxx
@@ -62,6 +62,8 @@ struct SwPrintData
         nPrintPostIts           = 0;
     }
 
+    virtual ~SwPrintData() {}
+
     sal_Bool operator==(const SwPrintData& rData)const
     {
         return
diff --git a/binfilter/inc/bf_sw/swcrsr.hxx b/binfilter/inc/bf_sw/swcrsr.hxx
index c41de16..88ec25d 100644
--- a/binfilter/inc/bf_sw/swcrsr.hxx
+++ b/binfilter/inc/bf_sw/swcrsr.hxx
@@ -59,6 +59,9 @@ struct SwFindParas
 {
     virtual int Find( SwPaM*, SwMoveFn, const SwPaM*, bool ) = 0;
     virtual int IsReplaceMode() const = 0;
+
+protected:
+    ~SwFindParas() {}
 };
 
 enum SwCursorSelOverFlags
diff --git a/binfilter/inc/bf_sw/unocoll.hxx b/binfilter/inc/bf_sw/unocoll.hxx
index 332dc8d..a56c2dd 100644
--- a/binfilter/inc/bf_sw/unocoll.hxx
+++ b/binfilter/inc/bf_sw/unocoll.hxx
@@ -73,6 +73,8 @@ class SwUnoCollection
             , pDoc(p)
         {}
 
+    virtual ~SwUnoCollection() {}
+
     virtual void                Invalidate();
     sal_Bool                        IsValid() const {return bObjectValid;}
 
diff --git a/binfilter/inc/bf_sw/viscrs.hxx b/binfilter/inc/bf_sw/viscrs.hxx
index 122aa1e..76698a2 100644
--- a/binfilter/inc/bf_sw/viscrs.hxx
+++ b/binfilter/inc/bf_sw/viscrs.hxx
@@ -88,7 +88,7 @@ class SwSelPaintRects : public SwRects
     virtual void FillRects() = 0;
 
 public:
-    ~SwSelPaintRects();
+    virtual ~SwSelPaintRects();
 
     void Hide();
 
diff --git a/binfilter/inc/bf_xmloff/txtvfldi.hxx b/binfilter/inc/bf_xmloff/txtvfldi.hxx
index a489fd9..645c652 100644
--- a/binfilter/inc/bf_xmloff/txtvfldi.hxx
+++ b/binfilter/inc/bf_xmloff/txtvfldi.hxx
@@ -95,6 +95,8 @@ public:
         sal_Bool bValue,                        /// process value (Prep.Field)
         sal_Bool bFormula);                     /// process formula (Prep.F.)
 
+    virtual ~XMLValueImportHelper() {}
+
     /// process attribute values
     virtual void ProcessAttribute( sal_uInt16 nAttrToken,
                                    const ::rtl::OUString& sAttrValue );


More information about the Libreoffice-commits mailing list