Marked an our parameter correctly and changed a ref to const ref
This commit is contained in:
@@ -103,7 +103,7 @@ namespace AzToolsFramework
|
||||
/**
|
||||
* Gets a set of all the template source paths in the given dom.
|
||||
* @param prefabDom The DOM to get the template source paths from.
|
||||
* @param templateSourcePaths The set of template source paths to populate.
|
||||
* @param[out] templateSourcePaths The set of template source paths to populate.
|
||||
*/
|
||||
void GetTemplateSourcePaths(const PrefabDomValue& prefabDom, AZStd::unordered_set<AZ::IO::Path>& templateSourcePaths);
|
||||
|
||||
|
||||
@@ -282,7 +282,7 @@ namespace AzToolsFramework
|
||||
}
|
||||
|
||||
bool PrefabPublicHandler::IsCyclicalDependencyFound(
|
||||
InstanceOptionalConstReference instance, AZStd::unordered_set<AZ::IO::Path>& templateSourcePaths)
|
||||
InstanceOptionalConstReference instance, const AZStd::unordered_set<AZ::IO::Path>& templateSourcePaths)
|
||||
{
|
||||
InstanceOptionalConstReference currentInstance = instance;
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace AzToolsFramework
|
||||
* \return true if any of the template source paths could be found in the ancestor hierarchy of instance, false otherwise.
|
||||
*/
|
||||
bool IsCyclicalDependencyFound(
|
||||
InstanceOptionalConstReference instance, AZStd::unordered_set<AZ::IO::Path>& templateSourcePaths);
|
||||
InstanceOptionalConstReference instance, const AZStd::unordered_set<AZ::IO::Path>& templateSourcePaths);
|
||||
|
||||
static Instance* GetParentInstance(Instance* instance);
|
||||
static Instance* GetAncestorOfInstanceThatIsChildOfRoot(const Instance* ancestor, Instance* descendant);
|
||||
|
||||
Reference in New Issue
Block a user