AZStd::ref prevented compiler from using RVO

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>
This commit is contained in:
nemerle
2021-07-30 19:26:34 +02:00
parent 28096d1620
commit e52606da69
@@ -109,7 +109,7 @@ namespace ScriptEventData
{
VersionedProperty property = VersionedProperty("Void");
property.Set<const VoidType>(VoidType {});
return AZStd::ref(property);
return property;
}
template <typename T>