[Libreoffice-commits] core.git: include/sot include/svtools include/tools include/vcl svtools/source

Caolán McNamara caolanm at redhat.com
Mon Jan 9 11:20:08 UTC 2017


 include/sot/filelist.hxx          |    4 ++--
 include/svtools/grfmgr.hxx        |    4 ++--
 include/tools/stream.hxx          |   12 ------------
 include/vcl/graph.hxx             |    4 ++--
 svtools/source/graphic/grfmgr.cxx |    1 -
 5 files changed, 6 insertions(+), 19 deletions(-)

New commits:
commit eef56fc73b5c3ddc02ca7192532748e8d60c3ac6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Jan 8 21:28:17 2017 +0000

    Related: coverity#1371305 unnecessary inheritence
    
    SvDataCopyStream used to do extra Load/Save things that are long
    gone, so there is no reason for the common base anymore
    
    Change-Id: Ib321021002adb480bb96298f199141dc3fe2ec2b
    Reviewed-on: https://gerrit.libreoffice.org/32851
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/include/sot/filelist.hxx b/include/sot/filelist.hxx
index 430568c..1939f71 100644
--- a/include/sot/filelist.hxx
+++ b/include/sot/filelist.hxx
@@ -25,7 +25,7 @@
 
 #include <vector>
 
-class SOT_DLLPUBLIC FileList : public SvDataCopyStream
+class SOT_DLLPUBLIC FileList
 {
     ::std::vector< OUString >  aStrList;
 
@@ -36,7 +36,7 @@ protected:
 
 public:
     FileList() {};
-    virtual ~FileList() override;
+    ~FileList();
 
     // Zuweisungsoperator
     FileList&           operator=( const FileList& rFileList );
diff --git a/include/svtools/grfmgr.hxx b/include/svtools/grfmgr.hxx
index c264ef8..0c01023 100644
--- a/include/svtools/grfmgr.hxx
+++ b/include/svtools/grfmgr.hxx
@@ -166,7 +166,7 @@ public:
                     }
 };
 
-class SVT_DLLPUBLIC GraphicObject : public SvDataCopyStream
+class SVT_DLLPUBLIC GraphicObject
 {
     friend class GraphicManager;
     friend class SdrGrafObj;
@@ -325,7 +325,7 @@ public:
                             GraphicObject( const Graphic& rGraphic );
                             GraphicObject( const GraphicObject& rCacheObj, const GraphicManager* pMgr = nullptr );
                             explicit GraphicObject( const OString& rUniqueID );
-                            virtual ~GraphicObject() override;
+                            ~GraphicObject();
 
     GraphicObject&          operator=( const GraphicObject& rCacheObj );
     bool                    operator==( const GraphicObject& rCacheObj ) const;
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx
index 56be8a7..3a1843d 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -679,18 +679,6 @@ public:
     virtual bool good() const override;
 };
 
-/** Data Copy Stream
-
-    This class is the foundation for all classes, using SvData
-    (SO2\DTRANS.HXX/CXX) for transportation (e.g., graphics).
-*/
-class TOOLS_DLLPUBLIC SvDataCopyStream
-{
-public:
-    // repeated execution of Load or Assign is allowed
-    virtual         ~SvDataCopyStream(){}
-};
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx
index 3bd6a2c..8191405 100644
--- a/include/vcl/graph.hxx
+++ b/include/vcl/graph.hxx
@@ -100,7 +100,7 @@ public:
     bool            getSnapHorVerLines() const { return mbSnapHorVerLines; }
 };
 
-class VCL_DLLPUBLIC Graphic : public SvDataCopyStream
+class VCL_DLLPUBLIC Graphic
 {
 private:
 
@@ -121,7 +121,7 @@ public:
                     Graphic( const Animation& rAnimation );
                     Graphic( const GDIMetaFile& rMtf );
                     Graphic( const css::uno::Reference< css::graphic::XGraphic >& rxGraphic );
-    virtual         ~Graphic() override;
+                   ~Graphic();
 
     Graphic&        operator=( const Graphic& rGraphic );
     Graphic&        operator=( Graphic&& rGraphic );
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx
index 7c0d55d..2fde691 100644
--- a/svtools/source/graphic/grfmgr.cxx
+++ b/svtools/source/graphic/grfmgr.cxx
@@ -91,7 +91,6 @@ GraphicObject::GraphicObject( const Graphic& rGraphic ) :
 }
 
 GraphicObject::GraphicObject( const GraphicObject& rGraphicObj, const GraphicManager* pMgr ) :
-    SvDataCopyStream(),
     maGraphic   ( rGraphicObj.GetGraphic() ),
     maAttr      ( rGraphicObj.maAttr ),
     maLink      ( rGraphicObj.maLink ),


More information about the Libreoffice-commits mailing list