Annotation of pkgsrc/inputmethod/scim-python/patches/patch-ad, revision 1.1
1.1 ! obache 1: $NetBSD$
! 2:
! 3: remove unwanted cast.
! 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));
! 12: + _labels.push_back (WideString (unistr));
! 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),
! 21: + if (self->lookup_table.append_candidate (WideString (unistr),
! 22: Attributes_FromTupleOrList (pAttrs)))
! 23: {
! 24: result = Py_True;
CVSweb <webmaster@jp.NetBSD.org>