Fixed a linux build error where an implicit conversion to const ref is not supported

This commit is contained in:
srikappa
2021-05-26 11:31:16 -07:00
parent 7d3dcf85f6
commit 0ffaa5429b
3 changed files with 3 additions and 3 deletions
@@ -234,7 +234,7 @@ namespace AzToolsFramework
}
}
PrefabDomValueConstReference Link::GetLinkPatches()
PrefabDomValueReference Link::GetLinkPatches()
{
return PrefabDomUtils::FindPrefabDomValue(m_linkDom, PrefabDomUtils::PatchesName);
}
@@ -79,7 +79,7 @@ namespace AzToolsFramework
*/
void AddLinkIdToInstanceDom(PrefabDomValue& instanceDomValue);
PrefabDomValueConstReference GetLinkPatches();
PrefabDomValueReference GetLinkPatches();
private:
@@ -117,7 +117,7 @@ namespace AzToolsFramework
auto linkRef = m_prefabSystemComponentInterface->FindLink(detachingInstanceLinkId);
AZ_Assert(linkRef.has_value(), "Unable to find link with id '%llu' during prefab creation.", detachingInstanceLinkId);
PrefabDomValueConstReference linkPatches = linkRef->get().GetLinkPatches();
PrefabDomValueReference linkPatches = linkRef->get().GetLinkPatches();
AZ_Assert(
linkPatches.has_value(), "Unable to get patches on link with id '%llu' during prefab creation.",
detachingInstanceLinkId);