Annotation of pkgsrc/inputmethod/scim-python/patches/patch-ad, revision 1.3
1.3 ! obache 1: $NetBSD: patch-ad,v 1.2 2012/12/25 21:07:47 joerg Exp $
1.1 obache 2:
1.3 ! obache 3: * let to cast with appropriate type.
1.1 obache 4:
5: --- src/scim-python-lookup-table.cpp.orig 2008-07-11 04:16:15.000000000 +0000
6: +++ src/scim-python-lookup-table.cpp
7: @@ -86,7 +86,7 @@ PyLookupTable::py_set_candidate_labels (
8: #else
9: int usize = PyUnicode_GET_SIZE (items[i]);
10: gunichar *unistr = g_utf16_to_ucs4 (PyUnicode_AS_UNICODE (items[i]), usize, NULL, NULL, NULL);
11: - _labels.push_back (WideString ((wchar_t *)unistr));
1.3 ! obache 12: + _labels.push_back (WideString ((scim::ucs4_t *)unistr));
1.1 obache 13: g_free (unistr);
14: #endif
15: }
16: @@ -518,7 +518,7 @@ PyLookupTable::py_append_candidate (PyLo
17: return NULL;
18: unistr = g_utf16_to_ucs4 (candidate, size, NULL, NULL, NULL);
19:
20: - if (self->lookup_table.append_candidate (WideString ((wchar_t *)unistr),
1.3 ! obache 21: + if (self->lookup_table.append_candidate (WideString ((scim::ucs4_t *)unistr),
1.1 obache 22: Attributes_FromTupleOrList (pAttrs)))
23: {
24: result = Py_True;
1.2 joerg 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:
CVSweb <webmaster@jp.NetBSD.org>