Annotation of pkgsrc/inputmethod/scim-python/patches/patch-ad, revision 1.2

1.2     ! joerg       1: $NetBSD: patch-ad,v 1.1.1.1 2010/08/08 01:05:04 obache Exp $
1.1       obache      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;
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>