mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Mark constness
This commit is contained in:
parent
86373bac9b
commit
1efe99009f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user