fix compile errors for m60 platform

Signed-off-by: SivaLee <lisiyuan21@huawei.com>
Change-Id: I1375b8a74db5926ec1eaa0580a9ff4b1226fb270
This commit is contained in:
SivaLee 2022-11-04 19:05:33 +08:00
parent 5e254323db
commit 30da55b366
2 changed files with 8 additions and 2 deletions

View File

@ -30,7 +30,10 @@ namespace OHOS {
if (size <= 0) {
return;
}
BreakpointDetails details = { .line_ = size, .column_ = size, .url_ = std::string((const char*)data, size)};
BreakpointDetails details;
details.line_ = size;
details.column_ = size;
details.url_ = std::string((const char*)data, size);
BreakpointId id = BreakpointDetails::ToString(details);
BreakpointDetails::ParseBreakpointId(id, &details);
JSNApi::DestroyJSVM(vm);

View File

@ -30,7 +30,10 @@ namespace OHOS {
if (size <= 0) {
return;
}
BreakpointDetails details = { .line_ = size, .column_ = size, .url_ = std::string((const char*)data, size)};
BreakpointDetails details;
details.line_ = size;
details.column_ = size;
details.url_ = std::string((const char*)data, size);
BreakpointId id = BreakpointDetails::ToString(details);
JSNApi::DestroyJSVM(vm);
}