Change the code so a temporary string isn't created

Signed-off-by: John Jones-Steele <jjjoness@amazon.com>
monroegm-disable-blank-issue-2
John Jones-Steele 4 years ago
parent e85d6e9c4c
commit a2c7f93c52

@ -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>()->c_str(); }
void SetVersion(AZ::u32 version) { m_version = version; }
ScriptEventData::VersionedProperty& GetNameProperty() { return m_name; }

Loading…
Cancel
Save