summaryrefslogtreecommitdiff
path: root/include/sot
diff options
context:
space:
mode:
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;