Fixed ComponentWrapper string scope error

This commit is contained in:
sippeangelo
2015-12-02 15:37:20 +01:00
parent 61b7aa6b3d
commit c7430a9338
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -37,13 +37,13 @@ struct ComponentWrapper
{
friend struct ComponentWrapper;
private:
SubscriptProxy(ComponentWrapper* component, std::string& propertyName)
SubscriptProxy(ComponentWrapper* component, std::string propertyName)
: m_Component(component)
, m_PropertyName(propertyName)
{ }
ComponentWrapper* m_Component;
std::string& m_PropertyName;
std::string m_PropertyName;
public:
template <typename T>