Skip to content

logic understanding for ActorLockerManager #12

Description

@chanokin

Hi,

Sorry if this is a silly question but my compiler complained about having an OR next to an AND in this line:

if (!Widget.IsValid() || Widget->GetType() != TEXT("SSceneOutlinerTreeRow") && Widget->GetType() != TEXT("SSceneOutlinerTreeView"))

I'm not an Unreal developer, I'm just helping a friend figure this out. Is the logic here the AND should be evaluated before the OR?

 if (
     !Widget.IsValid() || 
     (Widget->GetType() != TEXT("SSceneOutlinerTreeRow") && Widget->GetType() != TEXT("SSceneOutlinerTreeView"))
) 

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions