summaryrefslogtreecommitdiff
path: root/include/tools/stream.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/tools/stream.hxx')
-rw-r--r--include/tools/stream.hxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx
index b47d150aca29..a6c5adbea898 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -161,7 +161,7 @@ private:
///< into the derived stream (cf. PutBack)
bool m_isSwap;
bool m_isEof;
- sal_uInt32 m_nError;
+ ErrCode m_nError;
SvStreamEndian m_nEndian;
SvStreamCompressFlags m_nCompressMode;
LineEnd m_eLineDelimiter;
@@ -206,10 +206,9 @@ public:
SvLockBytes* GetLockBytes() const { return m_xLockBytes.get(); }
- sal_uInt32 GetError() const { return ERRCODE_TOERROR(m_nError); }
- sal_uInt32 GetErrorCode() const { return m_nError; }
-
- void SetError( sal_uInt32 nErrorCode );
+ ErrCode GetError() const { return m_nError.IgnoreWarning(); }
+ ErrCode GetErrorCode() const { return m_nError; }
+ void SetError( ErrCode nErrorCode );
virtual void ResetError();
void SetEndian( SvStreamEndian SvStreamEndian );