summaryrefslogtreecommitdiff
path: root/include/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-05 15:02:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-06 08:15:57 +0200
commitde8caac6bee3237ba634e7dce2e4635dc8bba57b (patch)
tree9260fb99b4f6de1619df46a11aa388ad8d42db63 /include/sot
parent690f2f5c4633780734a63305fd16733fb1344c74 (diff)
replace SVSTREAM_OK with ERRCODE_NONE
since the first is #define'd to the second, and offers no extra value Change-Id: I2c67e09ea3aa5361b8e7dfe7a20858c6ae054450 Reviewed-on: https://gerrit.libreoffice.org/38406 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sot')
-rw-r--r--include/sot/stg.hxx2
-rw-r--r--include/sot/storage.hxx2
2 files changed, 2 insertions, 2 deletions
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;
}