| @@ -1,24 +1,33 @@ | | | @@ -1,24 +1,33 @@ |
1 | $NetBSD: patch-ad,v 1.1.1.1 2010/08/08 01:05:04 obache Exp $ | | 1 | $NetBSD: patch-ad,v 1.2 2012/12/25 21:07:47 joerg Exp $ |
2 | | | 2 | |
3 | remove unwanted cast. | | 3 | remove unwanted cast. |
4 | | | 4 | |
5 | --- src/scim-python-lookup-table.cpp.orig 2008-07-11 04:16:15.000000000 +0000 | | 5 | --- src/scim-python-lookup-table.cpp.orig 2008-07-11 04:16:15.000000000 +0000 |
6 | +++ src/scim-python-lookup-table.cpp | | 6 | +++ src/scim-python-lookup-table.cpp |
7 | @@ -86,7 +86,7 @@ PyLookupTable::py_set_candidate_labels ( | | 7 | @@ -86,7 +86,7 @@ PyLookupTable::py_set_candidate_labels ( |
8 | #else | | 8 | #else |
9 | int usize = PyUnicode_GET_SIZE (items[i]); | | 9 | int usize = PyUnicode_GET_SIZE (items[i]); |
10 | gunichar *unistr = g_utf16_to_ucs4 (PyUnicode_AS_UNICODE (items[i]), usize, NULL, NULL, NULL); | | 10 | gunichar *unistr = g_utf16_to_ucs4 (PyUnicode_AS_UNICODE (items[i]), usize, NULL, NULL, NULL); |
11 | - _labels.push_back (WideString ((wchar_t *)unistr)); | | 11 | - _labels.push_back (WideString ((wchar_t *)unistr)); |
12 | + _labels.push_back (WideString (unistr)); | | 12 | + _labels.push_back (WideString (unistr)); |
13 | g_free (unistr); | | 13 | g_free (unistr); |
14 | #endif | | 14 | #endif |
15 | } | | 15 | } |
16 | @@ -518,7 +518,7 @@ PyLookupTable::py_append_candidate (PyLo | | 16 | @@ -518,7 +518,7 @@ PyLookupTable::py_append_candidate (PyLo |
17 | return NULL; | | 17 | return NULL; |
18 | unistr = g_utf16_to_ucs4 (candidate, size, NULL, NULL, NULL); | | 18 | unistr = g_utf16_to_ucs4 (candidate, size, NULL, NULL, NULL); |
19 | | | 19 | |
20 | - if (self->lookup_table.append_candidate (WideString ((wchar_t *)unistr), | | 20 | - if (self->lookup_table.append_candidate (WideString ((wchar_t *)unistr), |
21 | + if (self->lookup_table.append_candidate (WideString (unistr), | | 21 | + if (self->lookup_table.append_candidate (WideString (unistr), |
22 | Attributes_FromTupleOrList (pAttrs))) | | 22 | Attributes_FromTupleOrList (pAttrs))) |
23 | { | | 23 | { |
24 | result = Py_True; | | 24 | result = Py_True; |
| | | 25 | @@ -596,7 +596,7 @@ PyLookupTable::py_init (PyLookupTableObj |
| | | 26 | void |
| | | 27 | PyLookupTable::py_dealloc (PyLookupTableObject *self) |
| | | 28 | { |
| | | 29 | - self->lookup_table.~LookupTable (); |
| | | 30 | + self->lookup_table.~PyLookupTable (); |
| | | 31 | ((PyObject *)self)->ob_type->tp_free (self); |
| | | 32 | } |
| | | 33 | |