mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-29 18:22:37 -04:00
Mark constness
This commit is contained in:
@@ -133,7 +133,7 @@ static UChar32* python_to_icu32(PyObject *obj, int32_t *osz) {
|
||||
#endif
|
||||
|
||||
#ifndef NO_ICU_TO_PYTHON
|
||||
static PyObject* icu_to_python(UChar *src, int32_t sz) {
|
||||
return PyUnicode_DecodeUTF16((char*) src, sz * sizeof(UChar), "replace", NULL);
|
||||
static PyObject* icu_to_python(const UChar *src, int32_t sz) {
|
||||
return PyUnicode_DecodeUTF16((const char*) src, sz * sizeof(UChar), "replace", NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user