Marked an our parameter correctly and changed a ref to const ref

This commit is contained in:
srikappa
2021-05-14 11:48:31 -07:00
parent 7bdf44a099
commit 1a456cc9b9
3 changed files with 3 additions and 3 deletions
@@ -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);