[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 21 11:53:05 UTC 2018


 sw/source/uibase/config/modcfg.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 360d504464f68c031359026b15ccce38e797f220
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Sep 21 09:06:41 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Sep 21 13:52:38 2018 +0200

    coverity#1439598 Inferred misuse of enum
    
    and
    
    coverity#1439596 Inferred misuse of enum
    
    Change-Id: I4edd08c46c714c3d513df5f9403ab29dfd0e2497
    Reviewed-on: https://gerrit.libreoffice.org/60850
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/uibase/config/modcfg.cxx b/sw/source/uibase/config/modcfg.cxx
index fcae5c9a67f3..fd8f9eeef127 100644
--- a/sw/source/uibase/config/modcfg.cxx
+++ b/sw/source/uibase/config/modcfg.cxx
@@ -249,9 +249,11 @@ SwRevisionConfig::SwRevisionConfig() :
     m_aInsertAttr.m_nAttr = LINESTYLE_SINGLE;
     m_aInsertAttr.m_nColor = COL_TRANSPARENT;
     m_aDeletedAttr.m_nItemId = SID_ATTR_CHAR_STRIKEOUT;
+    // coverity[mixed_enums : FALSE] - unhelpfully warns different enum than LINESTYLE_SINGLE above
     m_aDeletedAttr.m_nAttr = STRIKEOUT_SINGLE;
     m_aDeletedAttr.m_nColor = COL_TRANSPARENT;
     m_aFormatAttr.m_nItemId = SID_ATTR_CHAR_WEIGHT;
+    // coverity[mixed_enums : FALSE] - unhelpfully warns different enum than STRIKEOUT_SINGLE above
     m_aFormatAttr.m_nAttr = WEIGHT_BOLD;
     m_aFormatAttr.m_nColor = COL_BLACK;
     Load();


More information about the Libreoffice-commits mailing list