未验证 提交 cd6f9ca9 编写于 作者: O openharmony_ci 提交者: Gitee

!845 优化静态告警

Merge pull request !845 from Zhouyj/cppcheck_1
......@@ -101,8 +101,8 @@ void UILineBreakEngine::LoadRule()
const RBBIDataHeader* rbbidh = reinterpret_cast<const RBBIDataHeader*>(dataInBytes + dh->dataHeader.headerSize);
stateTbl_ = reinterpret_cast<const RBBIStateTable*>(reinterpret_cast<const char*>(rbbidh) + rbbidh->fFTable);
status = U_ZERO_ERROR;
lineBreakTrie_ = reinterpret_cast<UCPTrie*>(
ucptrie_openFromBinary(UCPTRIE_TYPE_FAST, UCPTRIE_VALUE_BITS_8, reinterpret_cast<const uint8_t*>(rbbidh) + rbbidh->fTrie,
lineBreakTrie_ = reinterpret_cast<UCPTrie*>(ucptrie_openFromBinary(UCPTRIE_TYPE_FAST, UCPTRIE_VALUE_BITS_8,
reinterpret_cast<const uint8_t*>(rbbidh) + rbbidh->fTrie,
rbbidh->fTrieLen, nullptr, &status));
if (status != U_ZERO_ERROR) {
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册