diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-04 11:07:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-04 12:14:23 +0100 |
commit | 5c614cf14edc93533b21219b97dbb20dddb234db (patch) | |
tree | c804468b272ea416172008b5ba4e0c5d4170b186 /sc | |
parent | 7e629ac799ff6d16bcfa2e299e22c08316890678 (diff) |
coverity#707982 Uninitialized scalar field
Change-Id: If14da2785e2bddbcc1c098c0c88016b4b58d8452
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/chgviset.hxx | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/sc/inc/chgviset.hxx b/sc/inc/chgviset.hxx index 8a379d43fa95..cc1d0f77ebcd 100644 --- a/sc/inc/chgviset.hxx +++ b/sc/inc/chgviset.hxx @@ -53,31 +53,33 @@ private: bool bShowAccepted; bool bShowRejected; bool mbIsActionRange; - sal_uLong mnFirstAction; - sal_uLong mnLastAction; + sal_uLong mnFirstAction; + sal_uLong mnLastAction; public: - ScChangeViewSettings() : - aFirstDateTime( DateTime::EMPTY ), - aLastDateTime( DateTime::EMPTY ) - { - pCommentSearcher=NULL; - bIsDate=false; - bIsAuthor=false; - bIsRange=false; - bIsComment=false; - bShowIt=false; - eDateMode=SCDM_DATE_BEFORE; - bEveryoneButMe=false; - bShowAccepted=false; - bShowRejected=false; - mbIsActionRange = false; - } - - ScChangeViewSettings( const ScChangeViewSettings& r ); - - ~ScChangeViewSettings(); + ScChangeViewSettings() + : pCommentSearcher(NULL) + , aFirstDateTime(DateTime::EMPTY) + , aLastDateTime(DateTime::EMPTY) + , eDateMode(SCDM_DATE_BEFORE) + , bShowIt(false) + , bIsDate(false) + , bIsAuthor(false) + , bIsComment(false) + , bIsRange(false) + , bEveryoneButMe(false) + , bShowAccepted(false) + , bShowRejected(false) + , mbIsActionRange(false) + , mnFirstAction(0) + , mnLastAction(0) + { + } + + ScChangeViewSettings( const ScChangeViewSettings& r ); + + ~ScChangeViewSettings(); bool ShowChanges() const {return bShowIt;} void SetShowChanges(bool nFlag) {bShowIt=nFlag;} |