Merge pull request #2295 from aws-lumberyard-dev/FixScriptEventNameIssue
Change the code so a temporary string isn't created
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user