summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-03-29 11:46:47 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-03-29 11:50:30 +0100
commit3e71c1068a4691f19bef94b225770488aaa80390 (patch)
tree4692a5fd8c41fcf92095e995c9cc6943ef76aadb
parent937d3d65b1fc52c821f67a618fad637ff7590d8c (diff)
Fix some types in virtual methods to properly override.
Thanks to SAL_OVERRIDE! Adapting to 1258b576aef2ff3cdd4f44e1c03edb8c862a79f6 Change-Id: Iafc9660312ad33f6136c15170c35a59e61c76b26
-rw-r--r--include/sot/stg.hxx6
-rw-r--r--include/svl/instrm.hxx2
-rw-r--r--include/svl/strmadpt.hxx4
-rw-r--r--sot/source/sdstor/stg.cxx2
-rw-r--r--sot/source/sdstor/stgole.hxx2
-rw-r--r--sot/source/sdstor/stgstrms.hxx4
-rw-r--r--sot/source/sdstor/ucbstorage.cxx2
7 files changed, 11 insertions, 11 deletions
diff --git a/include/sot/stg.hxx b/include/sot/stg.hxx
index f2c72fffe8b3..2805d2acdda2 100644
--- a/include/sot/stg.hxx
+++ b/include/sot/stg.hxx
@@ -78,7 +78,7 @@ public:
TYPEINFO_OVERRIDE();
virtual sal_uLong Read( void * pData, sal_uLong nSize ) = 0;
virtual sal_uLong Write( const void* pData, sal_uLong nSize ) = 0;
- virtual sal_uLong Seek( sal_uLong nPos ) = 0;
+ virtual sal_uInt64 Seek( sal_uInt64 nPos ) = 0;
virtual sal_uLong Tell() = 0;
virtual void Flush() = 0;
virtual bool SetSize( sal_uLong nNewSize ) = 0;
@@ -160,7 +160,7 @@ public:
StorageStream( StgIo*, StgDirEntry*, StreamMode );
virtual sal_uLong Read( void * pData, sal_uLong nSize ) SAL_OVERRIDE;
virtual sal_uLong Write( const void* pData, sal_uLong nSize ) SAL_OVERRIDE;
- virtual sal_uLong Seek( sal_uLong nPos ) SAL_OVERRIDE;
+ virtual sal_uInt64 Seek( sal_uInt64 nPos ) SAL_OVERRIDE;
virtual sal_uLong Tell() SAL_OVERRIDE { return nPos; }
virtual void Flush() SAL_OVERRIDE;
virtual bool SetSize( sal_uLong nNewSize ) SAL_OVERRIDE;
@@ -255,7 +255,7 @@ public:
virtual sal_uLong Read( void * pData, sal_uLong nSize ) SAL_OVERRIDE;
virtual sal_uLong Write( const void* pData, sal_uLong nSize ) SAL_OVERRIDE;
- virtual sal_uLong Seek( sal_uLong nPos ) SAL_OVERRIDE;
+ virtual sal_uInt64 Seek( sal_uInt64 nPos ) SAL_OVERRIDE;
virtual sal_uLong Tell() SAL_OVERRIDE;
virtual void Flush() SAL_OVERRIDE;
virtual bool SetSize( sal_uLong nNewSize ) SAL_OVERRIDE;
diff --git a/include/svl/instrm.hxx b/include/svl/instrm.hxx
index 9571e54a57fa..222f79afe8e4 100644
--- a/include/svl/instrm.hxx
+++ b/include/svl/instrm.hxx
@@ -39,7 +39,7 @@ class SVL_DLLPUBLIC SvInputStream: public SvStream
com::sun::star::uno::Reference< com::sun::star::io::XSeekable >
m_xSeekable;
SvDataPipe_Impl * m_pPipe;
- sal_uLong m_nSeekedFrom;
+ sal_uInt64 m_nSeekedFrom;
SVL_DLLPRIVATE bool open();
diff --git a/include/svl/strmadpt.hxx b/include/svl/strmadpt.hxx
index 872a8506cc3c..9d1645bda956 100644
--- a/include/svl/strmadpt.hxx
+++ b/include/svl/strmadpt.hxx
@@ -43,10 +43,10 @@ public:
rTheOutputStream):
m_xOutputStream(rTheOutputStream), m_nPosition(0) {}
- virtual ErrCode ReadAt(sal_uInt64, void *, sal_uLong, sal_uInt64 *) const SAL_OVERRIDE;
+ virtual ErrCode ReadAt(sal_uInt64, void *, sal_uLong, sal_Size *) const SAL_OVERRIDE;
virtual ErrCode WriteAt(sal_uInt64 nPos, const void * pBuffer, sal_uLong nCount,
- sal_uInt64 * pWritten) SAL_OVERRIDE;
+ sal_Size * pWritten) SAL_OVERRIDE;
virtual ErrCode Flush() const SAL_OVERRIDE;
diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx
index 6ffb6ba1c822..d6ae01ea7cea 100644
--- a/sot/source/sdstor/stg.cxx
+++ b/sot/source/sdstor/stg.cxx
@@ -223,7 +223,7 @@ sal_uLong StorageStream::Write( const void* pData, sal_uLong nSize )
return nSize;
}
-sal_uLong StorageStream::Seek( sal_uLong n )
+sal_uInt64 StorageStream::Seek( sal_uInt64 n )
{
if( Validate() )
return nPos = pEntry->Seek( n );
diff --git a/sot/source/sdstor/stgole.hxx b/sot/source/sdstor/stgole.hxx
index 9dd24ee5cba0..02f026448510 100644
--- a/sot/source/sdstor/stgole.hxx
+++ b/sot/source/sdstor/stgole.hxx
@@ -30,7 +30,7 @@ class StgInternalStream : public SvStream
BaseStorageStream* pStrm;
virtual sal_uLong GetData( void* pData, sal_uLong nSize ) SAL_OVERRIDE;
virtual sal_uLong PutData( const void* pData, sal_uLong nSize ) SAL_OVERRIDE;
- virtual sal_uLong SeekPos( sal_uLong nPos ) SAL_OVERRIDE;
+ virtual sal_uInt64 SeekPos( sal_uInt64 nPos ) SAL_OVERRIDE;
virtual void FlushData() SAL_OVERRIDE;
public:
StgInternalStream( BaseStorage&, const OUString&, bool );
diff --git a/sot/source/sdstor/stgstrms.hxx b/sot/source/sdstor/stgstrms.hxx
index e2c2574ceff4..27fdd62c3a93 100644
--- a/sot/source/sdstor/stgstrms.hxx
+++ b/sot/source/sdstor/stgstrms.hxx
@@ -150,14 +150,14 @@ class StgTmpStrm : public SvMemoryStream
using SvMemoryStream::GetData;
virtual sal_uLong GetData( void* pData, sal_uLong nSize ) SAL_OVERRIDE;
virtual sal_uLong PutData( const void* pData, sal_uLong nSize ) SAL_OVERRIDE;
- virtual sal_uLong SeekPos( sal_uLong nPos ) SAL_OVERRIDE;
+ virtual sal_uInt64 SeekPos( sal_uInt64 nPos ) SAL_OVERRIDE;
virtual void FlushData() SAL_OVERRIDE;
public:
StgTmpStrm( sal_uLong=16 );
~StgTmpStrm();
bool Copy( StgTmpStrm& );
- void SetSize( sal_uLong ) SAL_OVERRIDE;
+ virtual void SetSize( sal_uInt64 ) SAL_OVERRIDE;
sal_uLong GetSize() const;
};
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index a27239c50faf..8c0be298bfb7 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -1292,7 +1292,7 @@ sal_uLong UCBStorageStream::Write( const void* pData, sal_uLong nSize )
return pImp->PutData( pData, nSize );
}
-sal_uLong UCBStorageStream::Seek( sal_uLong nPos )
+sal_uInt64 UCBStorageStream::Seek( sal_uInt64 nPos )
{
//return pImp->m_pStream->Seek( nPos );
return pImp->Seek( nPos );