修改codestyle

Signed-off-by: qhily999 <dingminglei@huawei.com>
This commit is contained in:
dml-hw
2021-08-18 02:58:00 +00:00
committed by Gitee
parent ccab89df93
commit 8742bf8b38
@@ -90,6 +90,10 @@ bool ChartComponent::CreateNativeViews()
}
ReleaseJerryValue(hasTypeProp, typeStrHandler, attrsPropValue, VA_ARG_END_FLAG);
if (!strcmp(chartType_, LINE)) {
if (chartView_) {
delete (chartView_);
chartView_ = nullptr;
}
chartView_ = new UIChartPolyline();
}
if (chartView_ == nullptr) {