[Libreoffice-commits] core.git: basic/source include/basic
Arnaud Versini
arnaud.versini at gmail.com
Mon Aug 15 06:54:30 UTC 2016
basic/source/sbx/sbxbase.cxx | 14 --------------
include/basic/sbxcore.hxx | 13 ++++++-------
2 files changed, 6 insertions(+), 21 deletions(-)
New commits:
commit 3093732c17d14b0e6eb67868c514448f13bc66d0
Author: Arnaud Versini <arnaud.versini at gmail.com>
Date: Sun Aug 14 18:15:51 2016 +0200
basic: SbxBase should be abstract
Change-Id: Ief4297e5c64cfb29645463aca3cc677dc06fc95a
Reviewed-on: https://gerrit.libreoffice.org/28112
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx
index 6157083..f1f9518 100644
--- a/basic/source/sbx/sbxbase.cxx
+++ b/basic/source/sbx/sbxbase.cxx
@@ -78,10 +78,6 @@ SbxClassType SbxBase::GetClass() const
return SbxClassType::DontCare;
}
-void SbxBase::Clear()
-{
-}
-
bool SbxBase::IsFixed() const
{
return IsSet( SbxFlagBits::Fixed );
@@ -268,16 +264,6 @@ bool SbxBase::Store( SvStream& rStrm )
return true;
}
-bool SbxBase::LoadData( SvStream&, sal_uInt16 )
-{
- return false;
-}
-
-bool SbxBase::StoreData( SvStream& ) const
-{
- return false;
-}
-
bool SbxBase::LoadCompleted()
{
return true;
diff --git a/include/basic/sbxcore.hxx b/include/basic/sbxcore.hxx
index ef07a74..25c7815 100644
--- a/include/basic/sbxcore.hxx
+++ b/include/basic/sbxcore.hxx
@@ -38,14 +38,13 @@ class SvStream;
virtual sal_uInt16 GetVersion() const override { return nVer; } \
virtual sal_uInt16 GetSbxId() const override { return nSbxId; }
-class SbxBase;
class SbxFactory;
class SbxObject;
class BASIC_DLLPUBLIC SbxBase : virtual public SvRefBase
{
- virtual bool LoadData( SvStream&, sal_uInt16 );
- virtual bool StoreData( SvStream& ) const;
+ virtual bool LoadData( SvStream&, sal_uInt16 ) = 0;
+ virtual bool StoreData( SvStream& ) const = 0;
protected:
SbxFlagBits nFlags; // Flag-Bits
@@ -54,9 +53,9 @@ protected:
SbxBase& operator=( const SbxBase& );
virtual ~SbxBase();
- virtual sal_uInt32 GetCreator() const { return 0; }
- virtual sal_uInt16 GetVersion() const { return 0; }
- virtual sal_uInt16 GetSbxId() const { return 0; }
+ virtual sal_uInt32 GetCreator() const = 0 ;
+ virtual sal_uInt16 GetVersion() const = 0;
+ virtual sal_uInt16 GetSbxId() const = 0;
public:
inline void SetFlags( SbxFlagBits n );
@@ -77,7 +76,7 @@ public:
virtual SbxDataType GetType() const;
virtual SbxClassType GetClass() const;
- virtual void Clear();
+ virtual void Clear() = 0;
static SbxBase* Load( SvStream& );
bool Store( SvStream& );
More information about the Libreoffice-commits
mailing list