BShelf: Use BString for comparing strings.

Recommended by Jessica on the Commits ML.
This commit is contained in:
Augustin Cavalier
2016-01-12 14:58:26 -05:00
parent e2dfcf7094
commit d3fc049b78
+1 -3
View File
@@ -1500,9 +1500,7 @@ BShelf::_GetProperty(BMessage *msg, BMessage *reply)
ReplicantAt(i, &view, &ID, &err);
if (err != B_OK || view == NULL)
continue;
if (view->Name() != NULL &&
strlen(view->Name()) == strlen(name) &&
!strcmp(view->Name(), name)) {
if (BString(view->Name()) == name) {
replicant = view;
break;
}