use strcmp instead of collate, since collate is slower and we're only doing an == check
This commit is contained in:
parent
82bbaf4c41
commit
af8c5f51a5
1 changed files with 3 additions and 3 deletions
|
@ -41,9 +41,9 @@ static struct HistoryItem *history_find(const char *name, const char *class,
|
||||||
/* find the client */
|
/* find the client */
|
||||||
for (it = history_list; it != NULL; it = it->next) {
|
for (it = history_list; it != NULL; it = it->next) {
|
||||||
hi = it->data;
|
hi = it->data;
|
||||||
if (!g_utf8_collate(hi->name, name) &&
|
if (!strcmp(hi->name, name) &&
|
||||||
!g_utf8_collate(hi->class, class) &&
|
!strcmp(hi->class, class) &&
|
||||||
!g_utf8_collate(hi->role, role))
|
!strcmp(hi->role, role))
|
||||||
return hi;
|
return hi;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue