Skip to content

Commit

Permalink
const correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
MothDoctor committed Aug 15, 2021
1 parent b074389 commit efad2d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/FlowEditor/Private/Graph/FlowGraphSchema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ UFlowGraphSchema::UFlowGraphSchema(const FObjectInitializer& ObjectInitializer)

void UFlowGraphSchema::SubscribeToAssetChanges()
{
FAssetRegistryModule& AssetRegistry = FModuleManager::LoadModuleChecked<FAssetRegistryModule>(AssetRegistryConstants::ModuleName);
const FAssetRegistryModule& AssetRegistry = FModuleManager::LoadModuleChecked<FAssetRegistryModule>(AssetRegistryConstants::ModuleName);
AssetRegistry.Get().OnFilesLoaded().AddStatic(&UFlowGraphSchema::GatherFlowNodes);
AssetRegistry.Get().OnAssetAdded().AddStatic(&UFlowGraphSchema::OnAssetAdded);
AssetRegistry.Get().OnAssetRemoved().AddStatic(&UFlowGraphSchema::RemoveAsset);
Expand Down
4 changes: 2 additions & 2 deletions Source/FlowEditor/Private/Nodes/FlowNodeBlueprintFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class SFlowNodeBlueprintCreateDialog final : public SCompoundWidget
Options.DisplayMode = EClassViewerDisplayMode::TreeView;
Options.bIsBlueprintBaseOnly = true;

TSharedPtr<FFlowNodeBlueprintParentFilter> Filter = MakeShareable(new FFlowNodeBlueprintParentFilter);
const TSharedPtr<FFlowNodeBlueprintParentFilter> Filter = MakeShareable(new FFlowNodeBlueprintParentFilter);

// All child child classes of UFlowNode are valid
Filter->AllowedChildrenOfClasses.Add(UFlowNode::StaticClass());
Expand Down Expand Up @@ -240,7 +240,7 @@ UFlowNodeBlueprintFactory::UFlowNodeBlueprintFactory(const FObjectInitializer& O

bool UFlowNodeBlueprintFactory::ConfigureProperties()
{
TSharedRef<SFlowNodeBlueprintCreateDialog> Dialog = SNew(SFlowNodeBlueprintCreateDialog);
const TSharedRef<SFlowNodeBlueprintCreateDialog> Dialog = SNew(SFlowNodeBlueprintCreateDialog);
return Dialog->ConfigureProperties(this);
}

Expand Down

0 comments on commit efad2d8

Please sign in to comment.