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); |