静态告警修改和代码优化

Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
fangyunzhong
2022-09-24 11:16:08 +08:00
parent 072c5bbd83
commit 64a4a1f9ef
5 changed files with 23 additions and 7 deletions
+2 -2
View File
@@ -92,14 +92,14 @@ uint32_t ResourcePack::InitModule()
});
if (it == moduleNames.end()) {
string buffer(" ");
for_each(moduleNames.begin(), moduleNames.end(), [&buffer](auto &iter) {
for_each(moduleNames.begin(), moduleNames.end(), [&buffer](const auto &iter) {
buffer.append(" " + iter + " ");
});
cerr << "Error: module name '" << moduleName_ << "' not in [" << buffer << "]" << endl;
return RESTOOL_ERROR;
}
int32_t startId = ((it - moduleNames.begin()) + 1) * 0x01000000;
startId = ((it - moduleNames.begin()) + 1) * 0x01000000;
if (startId >= 0x07000000) {
startId = startId + 0x01000000;
}