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

Collapse All | Expand All

(-)b/textproc/stardict3/files/patch-dict__src__lib__stddict.cpp (-2 / +20 lines)
Lines 1-5 Link Here
1
--- ./dict/src/lib/stddict.cpp.orig	2012-02-17 08:58:47.000000000 +0000
1
--- dict/src/lib/stddict.cpp.orig	2024-08-30 23:21:06 UTC
2
+++ ./dict/src/lib/stddict.cpp	2013-10-09 16:16:36.938640507 +0000
2
+++ dict/src/lib/stddict.cpp
3
@@ -32,6 +32,7 @@
3
@@ -32,6 +32,7 @@
4
 #include <glib.h>
4
 #include <glib.h>
5
 #include <glib/gi18n.h>
5
 #include <glib/gi18n.h>
Lines 8-10 Link Here
8
 #include <algorithm>
8
 #include <algorithm>
9
 #include <memory>
9
 #include <memory>
10
 
10
 
11
@@ -2532,7 +2533,7 @@ bool Libs::LookupSynonymSimilarWord(const gchar* sWord
12
		}
13
		// Upper the first character and lower others.
14
		if (!bFound) {
15
-			gchar *nextchar = g_utf8_next_char(sWord);
16
+			gchar *nextchar = const_cast<gchar*>(g_utf8_next_char(sWord));
17
			gchar *firstchar = g_utf8_strup(sWord, nextchar - sWord);
18
			nextchar = g_utf8_strdown(nextchar, -1);
19
			casestr = g_strdup_printf("%s%s", firstchar, nextchar);
20
@@ -2642,7 +2643,7 @@ bool Libs::LookupSimilarWord(const gchar* sWord, glong
21
		}
22
		// Upper the first character and lower others.
23
		if (!bFound) {
24
-			gchar *nextchar = g_utf8_next_char(sWord);
25
+			gchar *nextchar = const_cast<gchar*>(g_utf8_next_char(sWord));
26
			gchar *firstchar = g_utf8_strup(sWord, nextchar - sWord);
27
			nextchar = g_utf8_strdown(nextchar, -1);
28
			casestr = g_strdup_printf("%s%s", firstchar, nextchar);
(-)b/textproc/sdcv/files/patch-src_stardict__lib.cpp (+11 lines)
Added Link Here
1
--- src/stardict_lib.cpp.orig	2024-08-30 23:01:07 UTC
2
+++ src/stardict_lib.cpp
3
@@ -1047,7 +1047,7 @@ bool Libs::LookupSimilarWord(const gchar *sWord, std::
4
         }
5
         // Upper the first character and lower others.
6
         if (!bFound) {
7
-            gchar *nextchar = g_utf8_next_char(sWord);
8
+            gchar *nextchar = const_cast<gchar*>(g_utf8_next_char(sWord));
9
             gchar *firstchar = g_utf8_strup(sWord, nextchar - sWord);
10
             nextchar = g_utf8_strdown(nextchar, -1);
11
             casestr = g_strdup_printf("%s%s", firstchar, nextchar);
(-)b/textproc/qstardict/files/patch-plugins_stardict_stardict__lib.cpp (+11 lines)
Added Link Here
1
--- plugins/stardict/stardict_lib.cpp.orig	2024-08-30 23:12:18 UTC
2
+++ plugins/stardict/stardict_lib.cpp
3
@@ -1110,7 +1110,7 @@ bool Libs::LookupSimilarWord(const gchar *sWord, glong
4
         }
5
         // Upper the first character and lower others.
6
         if (!bFound) {
7
-            gchar *nextchar = g_utf8_next_char(sWord);
8
+            gchar *nextchar = const_cast<gchar*>(g_utf8_next_char(sWord));
9
             gchar *firstchar = g_utf8_strup(sWord, nextchar - sWord);
10
             nextchar = g_utf8_strdown(nextchar, -1);
11
             casestr = g_strdup_printf("%s%s", firstchar, nextchar);

Return to bug 281083