summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-19 10:24:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-20 06:12:24 +0000
commit40fc2c1a0d2ebdf47131651045107c9d5abb850d (patch)
tree66a2d4c7220dfd47b09984892a8a08a7e5ab5fea /sfx2
parente7324c5705eaa38a2c9aa0636f01a73f033ba4d6 (diff)
loplugin:expandablemethodds in sfx2..starmath
Change-Id: Ia4c411f5a9a68c2f344188ce6b6bc1815c89f993 Reviewed-on: https://gerrit.libreoffice.org/30055 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/oleprops.hxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/doc/oleprops.hxx b/sfx2/source/doc/oleprops.hxx
index a4190a20ea47..dfadd52b4290 100644
--- a/sfx2/source/doc/oleprops.hxx
+++ b/sfx2/source/doc/oleprops.hxx
@@ -170,8 +170,6 @@ public:
inline explicit SfxOleObjectBase() : mnErrCode( ERRCODE_NONE ) {}
virtual ~SfxOleObjectBase();
- /** Returns true, if an error code (other than ERRCODE_NONE) is set. */
- inline bool HasError() const { return mnErrCode != ERRCODE_NONE; }
/** Returns the current error code. */
inline ErrCode GetError() const { return mnErrCode; }
@@ -183,7 +181,7 @@ public:
protected:
/** Sets the passed error code. Will be returned by Load() and Save() functions.
Always the first error code is stored. Multiple calls have no effect. */
- inline void SetError( ErrCode nErrCode ) { if( !HasError() ) mnErrCode = nErrCode; }
+ inline void SetError( ErrCode nErrCode ) { if( mnErrCode == ERRCODE_NONE ) mnErrCode = nErrCode; }
/** Loads the passed object from the stream. Sets returned error code as own error. */
void LoadObject( SvStream& rStrm, SfxOleObjectBase& rObj );
/** Saves the passed object to the stream. Sets returned error code as own error. */