You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by da...@apache.org on 2026/07/05 07:49:55 UTC

(openoffice) 01/02: C++ 2011 uses strict enums, and does not allow invalid enum values.

This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit c0afafeee09cedd3f7cece69028b73abca647569
Author: Damjan Jovanovic <da...@apache.org>
AuthorDate: Sun Jul 5 06:24:37 2026 +0200

    C++ 2011 uses strict enums, and does not allow invalid enum values.
    
    Patch by: me
---
 main/sw/source/filter/ww8/ww8graf.cxx | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/main/sw/source/filter/ww8/ww8graf.cxx b/main/sw/source/filter/ww8/ww8graf.cxx
index 0367ea837e..2f84dbed9e 100644
--- a/main/sw/source/filter/ww8/ww8graf.cxx
+++ b/main/sw/source/filter/ww8/ww8graf.cxx
@@ -1645,9 +1645,6 @@ sal_Int32 SwWW8ImplReader::MatchSdrBoxIntoFlyBoxItem(const Color& rLineColor,
         else
             nIdx = WW8_BordersSO::double5;// 180
     break;
-    // no line style is set
-    case (MSO_LineStyle)USHRT_MAX:
-        break;
     // erroneously not implemented line style is set
     default:
         ASSERT(sal_False, "eLineStyle is not (yet) implemented!");