Merge pull request #2295 from aws-lumberyard-dev/FixScriptEventNameIssue

Change the code so a temporary string isn't created
This commit is contained in:
hultonha
2021-07-20 14:34:24 +01:00
committed by GitHub
@@ -151,7 +151,7 @@ namespace ScriptEvents
const AZStd::vector<Method>& GetMethods() const { return m_methods; }
AZStd::string_view GetLabel() const { return GetName(); }
AZStd::string_view GetLabel() const { return { m_name.Get<AZStd::string>()->data(), m_name.Get<AZStd::string>()->size() }; }
void SetVersion(AZ::u32 version) { m_version = version; }
ScriptEventData::VersionedProperty& GetNameProperty() { return m_name; }