mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 04:55:02 +01:00
Fix unintialized error parameter to u_scriptgetcode
This commit is contained in:
parent
2e235a9e7a
commit
46c3613ce4
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue