[pango/misc-speedups: 4/4] Cosmetics




commit e3d2f378bea4eaf5bb82173e6cb6667347f18fce
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 29 00:12:31 2021 -0400

    Cosmetics
    
    Some formatting fixes for default_break.

 pango/break.c | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/pango/break.c b/pango/break.c
index 7033c659..6b8e5c01 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -505,9 +505,7 @@ pango_default_break (const gchar   *text,
        else if (GB_type == GB_InHangulSyllable)
          is_grapheme_boundary = FALSE; /* Rules GB6, GB7, GB8 */
        else if (GB_type == GB_Extend)
-          {
-           is_grapheme_boundary = FALSE; /* Rule GB9 */
-          }
+         is_grapheme_boundary = FALSE; /* Rule GB9 */
         else if (GB_type == GB_ZWJ)
          is_grapheme_boundary = FALSE; /* Rule GB9 */
        else if (GB_type == GB_SpacingMark)
@@ -644,14 +642,12 @@ pango_default_break (const gchar   *text,
                  if (wc >= 0x24B6 && wc <= 0x24E9) /* Other_Alphabetic */
                    goto Alphabetic;
 
-                 if (G_UNLIKELY(wc >=0x1F1E6 && wc <=0x1F1FF))
+                 if (G_UNLIKELY(wc >= 0x1F1E6 && wc <= 0x1F1FF))
                    {
-                         if (prev_WB_type == WB_RI_Odd)
-                          WB_type = WB_RI_Even;
-                         else if (prev_WB_type == WB_RI_Even)
-                          WB_type = WB_RI_Odd;
-                         else
-                          WB_type = WB_RI_Odd;
+                      if (prev_WB_type == WB_RI_Odd)
+                        WB_type = WB_RI_Even;
+                      else
+                        WB_type = WB_RI_Odd;
                    }
 
                  break;
@@ -1566,7 +1562,6 @@ pango_default_break (const gchar   *text,
 
   attrs[i].is_line_break = TRUE;  /* Rule LB3 */
   attrs[0].is_line_break = FALSE; /* Rule LB2 */
-
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]