summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-03 11:34:11 +0200
committerNoel Grandin <noel@peralex.com>2015-03-19 10:45:01 +0200
commit3f18d628ec32eee15903332469bd52f0bd6197b8 (patch)
tree8139a9f95474f1dd683a9e0224dc702d9dd48a28 /sot
parent6bf3b6d420873e236b2805a42a95ce33e614ad98 (diff)
loplugin:constantfunction: sot
this appears to be completely unused Change-Id: I74dad8b0c478a1aed035ce9cc663a74de157816e
Diffstat (limited to 'sot')
-rw-r--r--sot/source/base/object.cxx11
-rw-r--r--sot/source/sdstor/stgelem.hxx2
-rw-r--r--sot/source/sdstor/stgstrms.cxx8
3 files changed, 5 insertions, 16 deletions
diff --git a/sot/source/base/object.cxx b/sot/source/base/object.cxx
index 2e5a7811fb7d..ddce68b1636e 100644
--- a/sot/source/base/object.cxx
+++ b/sot/source/base/object.cxx
@@ -62,17 +62,6 @@ SotObject::~SotObject()
SotFactory::DecSvObjectCount( this );
}
-/*************************************************************************
-|* SotObject::GetInterface()
-|*
-|* Beschreibung: Um so3 zu helfen
-*************************************************************************/
-IUnknown * SotObject::GetInterface( const SvGlobalName & )
-{
- return NULL;
-}
-
-
void SotObject::OwnerLock
(
bool bLock /* true, lock. false, unlock. */
diff --git a/sot/source/sdstor/stgelem.hxx b/sot/source/sdstor/stgelem.hxx
index c36b5b48b4e7..7afe2201318b 100644
--- a/sot/source/sdstor/stgelem.hxx
+++ b/sot/source/sdstor/stgelem.hxx
@@ -76,7 +76,7 @@ public:
void SetFATChain( sal_Int32 n );
sal_Int32 GetMasters() const { return nMaster; }
void SetMasters( sal_Int32 n );
- short GetFAT1Size() const { return cFATPagesInHeader; }
+ static short GetFAT1Size() { return cFATPagesInHeader; }
const ClsId& GetClassId() const { return aClsId; }
sal_Int32 GetFATPage( short ) const;
void SetFATPage( short, sal_Int32 );
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index 0dbfe367c3fe..8a624e042f5c 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -585,10 +585,10 @@ sal_Int32 StgFATStrm::GetPage( short nOff, bool bMake, sal_uInt16 *pnMasterAlloc
{
OSL_ENSURE( nOff >= 0, "The offset may not be negative!" );
if( pnMasterAlloc ) *pnMasterAlloc = 0;
- if( nOff < rIo.aHdr.GetFAT1Size() )
+ if( nOff < StgHeader::GetFAT1Size() )
return rIo.aHdr.GetFATPage( nOff );
sal_Int32 nMaxPage = nSize >> 2;
- nOff = nOff - rIo.aHdr.GetFAT1Size();
+ nOff = nOff - StgHeader::GetFAT1Size();
// Anzahl der Masterpages, durch die wir iterieren muessen
sal_uInt16 nMasterCount = ( nPageSize >> 2 ) - 1;
sal_uInt16 nBlocks = nOff / nMasterCount;
@@ -664,11 +664,11 @@ bool StgFATStrm::SetPage( short nOff, sal_Int32 nNewPage )
m_aPagesCache.clear();
bool bRes = true;
- if( nOff < rIo.aHdr.GetFAT1Size() )
+ if( nOff < StgHeader::GetFAT1Size() )
rIo.aHdr.SetFATPage( nOff, nNewPage );
else
{
- nOff = nOff - rIo.aHdr.GetFAT1Size();
+ nOff = nOff - StgHeader::GetFAT1Size();
// Anzahl der Masterpages, durch die wir iterieren muessen
sal_uInt16 nMasterCount = ( nPageSize >> 2 ) - 1;
sal_uInt16 nBlocks = nOff / nMasterCount;