Merge branch 'mg/iterator' into 'gtk-3-24'
Hoist iterator variable definition outside of for loop See merge request GNOME/gtk!3527
This commit is contained in:
@ -494,12 +494,13 @@ tweak_preedit (const char *text)
|
|||||||
{
|
{
|
||||||
GString *s;
|
GString *s;
|
||||||
guint len;
|
guint len;
|
||||||
|
const char *p;
|
||||||
|
|
||||||
s = g_string_new ("");
|
s = g_string_new ("");
|
||||||
|
|
||||||
len = g_utf8_strlen (text, -1);
|
len = g_utf8_strlen (text, -1);
|
||||||
|
|
||||||
for (const char *p = text; *p; p = g_utf8_next_char (p))
|
for (p = text; *p; p = g_utf8_next_char (p))
|
||||||
{
|
{
|
||||||
gunichar ch = g_utf8_get_char (p);
|
gunichar ch = g_utf8_get_char (p);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user