Applied optimisation from PR

Signed-off-by: John Jones-Steele <jjjoness@amazon.com>
This commit is contained in:
John Jones-Steele
2021-07-20 13:45:45 +01:00
parent a2c7f93c52
commit a15ce97dca
@@ -151,7 +151,7 @@ namespace ScriptEvents
const AZStd::vector<Method>& GetMethods() const { return m_methods; }
AZStd::string_view GetLabel() const { return m_name.Get<AZStd::string>()->c_str(); }
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; }