summaryrefslogtreecommitdiff
path: root/include/sot
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-09-19 10:56:57 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-10-27 13:59:09 +0100
commitd1eb389d7081276bb08f4cf3be16e5301a4c39cb (patch)
tree8428f085d6d8def34f6f68090e2645530a45b768 /include/sot
parentf8dac0391c4aa6d4d378919326aacd935d7bd462 (diff)
sal_uLong/long to ErrCode
Change-Id: I2ba2d867785765e4850c60070e86419f66e25f57
Diffstat (limited to 'include/sot')
-rw-r--r--include/sot/stg.hxx6
-rw-r--r--include/sot/storage.hxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/include/sot/stg.hxx b/include/sot/stg.hxx
index 2c2e7ab72be2..056baf9eac9d 100644
--- a/include/sot/stg.hxx
+++ b/include/sot/stg.hxx
@@ -48,7 +48,7 @@ typedef struct SvGUID ClsId;
class SOT_DLLPUBLIC StorageBase : public SvRefBase
{
protected:
- mutable sal_uLong m_nError; // error code
+ mutable ErrCode m_nError; // error code
StreamMode m_nMode; // open mode
bool m_bAutoCommit;
StorageBase();
@@ -58,8 +58,8 @@ public:
virtual bool Validate( bool=false ) const = 0;
virtual bool ValidateMode( StreamMode ) const = 0;
void ResetError() const;
- void SetError( sal_uLong ) const;
- sal_uLong GetError() const;
+ void SetError( ErrCode ) const;
+ ErrCode GetError() const;
bool Good() const { return bool( m_nError == SVSTREAM_OK ); }
StreamMode GetMode() const { return m_nMode; }
void SetAutoCommit( bool bSet )
diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx
index 316bc41ee9a4..b51afe43e6e6 100644
--- a/include/sot/storage.hxx
+++ b/include/sot/storage.hxx
@@ -86,7 +86,7 @@ friend class SotStorageStream;
BaseStorage * m_pOwnStg; // target storage
SvStream * m_pStorStm; // only for SDSTORAGES
- sal_uLong m_nError;
+ ErrCode m_nError;
OUString m_aName; // name of the storage
bool m_bIsRoot; // e.g.: File Storage
bool m_bDelStm;
@@ -135,8 +135,8 @@ public:
return m_nVersion;
}
- sal_uLong GetError() const { return ERRCODE_TOERROR(m_nError); }
- void SetError( sal_uLong nErrorCode )
+ ErrCode GetError() const { return ERRCODE_TOERROR(m_nError); }
+ void SetError( ErrCode nErrorCode )
{
if( m_nError == SVSTREAM_OK )
m_nError = nErrorCode;