diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/editdata.hxx | 2 | ||||
-rw-r--r-- | include/sot/stg.hxx | 2 | ||||
-rw-r--r-- | include/sot/storage.hxx | 2 | ||||
-rw-r--r-- | include/vcl/errcode.hxx | 3 |
4 files changed, 3 insertions, 6 deletions
diff --git a/include/editeng/editdata.hxx b/include/editeng/editdata.hxx index 9560c2e32863..40bb2de969c4 100644 --- a/include/editeng/editdata.hxx +++ b/include/editeng/editdata.hxx @@ -55,7 +55,7 @@ enum class EEAnchorMode { EDITENG_DLLPUBLIC extern const size_t EE_APPEND; // Error messages for Read / Write Method -#define EE_READWRITE_OK (SVSTREAM_OK) +#define EE_READWRITE_OK (ERRCODE_NONE) #define EE_READWRITE_WRONGFORMAT (SVSTREAM_ERRBASE_USER+1) #define EE_READWRITE_GENERALERROR (SVSTREAM_ERRBASE_USER+2) diff --git a/include/sot/stg.hxx b/include/sot/stg.hxx index a61094730680..3e7cd9f78d43 100644 --- a/include/sot/stg.hxx +++ b/include/sot/stg.hxx @@ -58,7 +58,7 @@ public: void ResetError() const; void SetError( ErrCode ) const; ErrCode GetError() const; - bool Good() const { return m_nError == SVSTREAM_OK; } + bool Good() const { return m_nError == ERRCODE_NONE; } StreamMode GetMode() const { return m_nMode; } void SetAutoCommit( bool bSet ) { m_bAutoCommit = bSet; } diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx index 5f60cafd3f79..f659149d9f42 100644 --- a/include/sot/storage.hxx +++ b/include/sot/storage.hxx @@ -108,7 +108,7 @@ public: ErrCode GetError() const { return ERRCODE_TOERROR(m_nError); } void SetError( ErrCode nErrorCode ) { - if( m_nError == SVSTREAM_OK ) + if( m_nError == ERRCODE_NONE ) m_nError = nErrorCode; } diff --git a/include/vcl/errcode.hxx b/include/vcl/errcode.hxx index ba739e069753..de41eae4b4af 100644 --- a/include/vcl/errcode.hxx +++ b/include/vcl/errcode.hxx @@ -222,10 +222,7 @@ inline sal_uInt32 ERRCODE_TOERROR( ErrCode x ) #define ERRCODE_IO_NOTSTORABLEINBINARYFORMAT CAST_TO_UINT32(39UL |ERRCODE_CLASS_FORMAT|\ ERRCODE_AREA_IO) -// FsysErrorCodes - // StreamErrorCodes -#define SVSTREAM_OK ERRCODE_NONE #define SVSTREAM_GENERALERROR ERRCODE_IO_GENERAL #define SVSTREAM_FILE_NOT_FOUND ERRCODE_IO_NOTEXISTS |