Change the code so a temporary string isn't created
Signed-off-by: John Jones-Steele <jjjoness@amazon.com>
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>()->c_str(); }
|
||||
|
||||
void SetVersion(AZ::u32 version) { m_version = version; }
|
||||
ScriptEventData::VersionedProperty& GetNameProperty() { return m_name; }
|
||||
|
||||
Reference in New Issue
Block a user