view_stack_processor.cpp代码风格修复

Signed-off-by: Lby <liboyu12@huawei.com>
This commit is contained in:
Lby 2024-08-30 16:02:51 +08:00
parent 97671fe70c
commit 2cfebd7621

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;
}