This commit is contained in:
Zihan Chen
2017-01-24 23:17:39 -08:00
parent 297b214693
commit d4e4e1b58d
3 changed files with 98 additions and 92 deletions

View File

@@ -122,7 +122,7 @@ public:
return address;
}
void Update(WString _name, DateTime _birthday, WString _phone, WString _address)override
void Update(const WString& _name, DateTime _birthday, const WString& _phone, const WString& _address)override
{
name = _name;
birthday = _birthday;
@@ -230,7 +230,7 @@ public:
}
}
void AddCategory(WString name)
void AddCategory(const WString& name)
{
if (auto current = dynamic_cast<Category*>(selectedCategory.Obj()))
{