mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix unintialized error parameter to u_scriptgetcode
This commit is contained in:
parent
2e235a9e7a
commit
46c3613ce4
@ -207,8 +207,8 @@ private:
|
||||
}
|
||||
|
||||
bool at_script_boundary(IteratorDescription ¤t, UChar32 next_codepoint) const {
|
||||
UErrorCode err;
|
||||
UScriptCode script = uscript_getScript(next_codepoint, &err);
|
||||
icu::ErrorCode err;
|
||||
UScriptCode script = uscript_getScript(next_codepoint, err);
|
||||
if (script == USCRIPT_COMMON || script == USCRIPT_INVALID_CODE || script == USCRIPT_INHERITED) return false;
|
||||
if (current.script == script) return false;
|
||||
const char *lang = iterator_language_for_script(script);
|
||||
|
Loading…
x
Reference in New Issue
Block a user