1,修改编码规范

2,屏蔽三方开源头文件OAT

Signed-off-by: chencheng31 <chencheng8@huawei.com>
This commit is contained in:
chencheng31
2022-03-16 12:36:03 +08:00
parent 3086fb6897
commit f994b91a97
32 changed files with 89 additions and 87 deletions
+2 -2
View File
@@ -87,7 +87,7 @@ bool ResourceUtil::OpenJsonFile(const string &path, Json::Value &root)
cerr << "Error: parseFromStream '" << path;
cerr << "\n" << errs << endl;
ifs.close();
return false;
return false;
}
ifs.close();
return true;
@@ -182,7 +182,7 @@ vector<string> ResourceUtil::DecomposeStrings(const string &content)
while (pos < length) {
if (pos + HEAD_LENGTH >= length) {
result.clear();
return result;
return result;
}
uint16_t size = (content[pos] & 0xff) | ((content[pos + 1] & 0xff) << 8);
pos += HEAD_LENGTH;