Changed EventHook name storage to use AString (bug 6188, r=psychonic).

This commit is contained in:
Kyle Sanderson
2014-05-10 02:40:08 -07:00
parent 29ff05bd62
commit f15234e4f8
2 changed files with 5 additions and 9 deletions
+2 -2
View File
@@ -69,11 +69,11 @@ struct EventHook
IChangeableForward *pPostHook;
bool postCopy;
unsigned int refCount;
char *name;
ke::AString name;
static inline bool matches(const char *name, const EventHook *hook)
{
return strcmp(name, hook->name) == 0;
return strcmp(name, hook->name.chars()) == 0;
}
};