!41980 view_stack_processor.cpp代码风格修复

Merge pull request !41980 from Lby/lby_view_stack_processor
This commit is contained in:
openharmony_ci 2024-09-01 03:19:45 +00:00 committed by Gitee
commit 30eb7d143d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -454,7 +454,7 @@ bool ViewStackProcessor::ShouldPopImmediately()
auto multiComposedComponent = AceType::DynamicCast<MultiComposedComponent>(GetMainComponent());
auto soleChildComponent = AceType::DynamicCast<SoleChildComponent>(GetMainComponent());
auto menuComponent = AceType::DynamicCast<MenuComponent>(GetMainComponent());
return ((type && strcmp(type, AceType::TypeName<TextSpanComponent>()) == 0)||
return ((type && strcmp(type, AceType::TypeName<TextSpanComponent>()) == 0) ||
!(componentGroup || multiComposedComponent || soleChildComponent || menuComponent));
}
@ -523,7 +523,7 @@ void ViewStackProcessor::PopContainer()
}
while ((!componentGroup && !multiComposedComponent && !soleChildComponent) ||
(type && strcmp(type, AceType::TypeName<TextSpanComponent>()) == 0)) {
(type && strcmp(type, AceType::TypeName<TextSpanComponent>()) == 0)) {
if (componentsStack_.size() <= 1) {
break;
}