View | Details | Raw Unified | Return to bug 281083 | Differences between
and this patch

Collapse All | Expand All

(-)b/deskutils/pinot/files/patch-IndexSearch_cjkv_CJKVTokenizer.cc (+11 lines)
Added Link Here
1
--- IndexSearch/cjkv/CJKVTokenizer.cc.orig	2024-09-02 16:16:17 UTC
2
+++ IndexSearch/cjkv/CJKVTokenizer.cc
3
@@ -28,7 +28,7 @@ static char *unicode_get_utf8(const char *p, gunichar
4
 {
5
	*result = g_utf8_get_char(p);
6
7
-	return (*result == (gunichar)-1) ? NULL : g_utf8_next_char(p);
8
+	return (*result == (gunichar)-1) ? NULL : const_cast<char*>(g_utf8_next_char(p));
9
 }
10
11
 // 2E80..2EFF; CJK Radicals Supplement
(-)b/print/paps/files/patch-src_paps.cc (+11 lines)
Added Link Here
1
--- src/paps.cc.orig	2023-02-09 06:49:53 UTC
2
+++ src/paps.cc
3
@@ -1115,7 +1115,7 @@ split_text_into_paragraphs (PangoContext *pango_contex
4
       while (p != nullptr && *p)
5
         {
6
           wc = g_utf8_get_char (p);
7
-          next = g_utf8_next_char (p);
8
+          next = const_cast<char*>(g_utf8_next_char (p));
9
           if (wc == (gunichar)-1)
10
             {
11
               fprintf (stderr, _("%s: Invalid character in input\n"), g_get_prgname ());
(-)b/science/gchemutils/files/patch-libs_gccv_text.cc (+29 lines)
Added Link Here
1
--- libs/gccv/text.cc.orig	2024-09-02 15:25:20 UTC
2
+++ libs/gccv/text.cc
3
@@ -1126,7 +1126,7 @@ bool Text::OnKeyPressed (GdkEventKey *event)
4
		if (event->state & GDK_CONTROL_MASK) {
5
			/* move to end of word */
6
			char const* s = m_Text.c_str ();
7
-			char *p = g_utf8_next_char (s + m_CurPos);
8
+			char *p = const_cast<char*>(g_utf8_next_char (s + m_CurPos));
9
			while (*p && (!g_unichar_isgraph (g_utf8_get_char(p)) || g_unichar_ispunct (g_utf8_get_char(p))))
10
				p = g_utf8_next_char (p);
11
			while (g_unichar_isgraph (g_utf8_get_char(p)) && !g_unichar_ispunct (g_utf8_get_char(p)))
12
@@ -1137,7 +1137,7 @@ bool Text::OnKeyPressed (GdkEventKey *event)
13
			Invalidate ();
14
		} else {
15
			char const* s = m_Text.c_str ();
16
-			char *p = g_utf8_next_char (s + m_CurPos);
17
+			char *p = const_cast<char*>(g_utf8_next_char (s + m_CurPos));
18
			if (!p)
19
				break;
20
			m_CurPos = p - s;
21
@@ -1224,7 +1224,7 @@ bool Text::OnKeyPressed (GdkEventKey *event)
22
		if (m_CurPos == m_Text.length ())
23
			break;
24
		char const* s = m_Text.c_str ();
25
-		char *p = g_utf8_next_char (s + m_CurPos);
26
+		char *p = const_cast<char*>(g_utf8_next_char (s + m_CurPos));
27
		int new_pos = p - s;
28
		ReplaceText (empty_st, m_CurPos, new_pos - m_CurPos);
29
		if (client)
(-)b/x11-fm/nautilus/files/patch-src_nautilus-file-operations.c (+11 lines)
Added Link Here
1
--- src/nautilus-file-operations.c.orig	2024-09-02 15:19:10 UTC
2
+++ src/nautilus-file-operations.c
3
@@ -419,7 +419,7 @@ shorten_utf8_string (const char *base,
4
     while (len)
5
     {
6
         char *next;
7
-        next = g_utf8_next_char (p);
8
+        next = (char *) g_utf8_next_char (p);
9
         if (next - p > len || *next == '\0')
10
         {
11
             break;

Return to bug 281083