代码告警修改

Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
fangyunzhong
2022-11-04 18:06:32 +08:00
parent 1be3fdf223
commit 3a2e59bbc2
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -218,7 +218,7 @@ uint32_t ResourcePack::GenerateCplusHeader(const string &headerPath) const
transform(name.begin(), name.end(), name.begin(), ::toupper);
buffer << "const int32_t " << name << " = ";
buffer << "0x" << hex << setw(8) << setfill('0') << resourceId.id << ";\n";
}, [](stringstream &buffer){
}, [](stringstream &buffer) {
buffer << "}\n";
buffer << "#endif";
});
@@ -243,7 +243,7 @@ uint32_t ResourcePack::GenerateJsHeader(const std::string &headerPath) const
buffer << ",\n";
}
buffer << " " << resourceId.name << " : " << resourceId.id;
}, [](stringstream &buffer){
}, [](stringstream &buffer) {
buffer << "\n" << " " << "}\n";
buffer << "}\n";
});