Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18972 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -543,25 +543,21 @@ OpenWithPoseView::CanHandleDragSelection(const Model *, const BMessage *, bool)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
AddSupportingAppForTypeToQuery(SearchForSignatureEntryList *queryIterator,
|
AddSupportingAppForTypeToQuery(SearchForSignatureEntryList *queryIterator,
|
||||||
const char *signature)
|
const char *type)
|
||||||
{
|
{
|
||||||
// get supporting apps for type
|
// get supporting apps for type
|
||||||
BMimeType mime(signature);
|
BMimeType mime(type);
|
||||||
if (!mime.IsInstalled())
|
if (!mime.IsInstalled())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
BMessage message;
|
BMessage message;
|
||||||
mime.GetSupportingApps(&message);
|
mime.GetSupportingApps(&message);
|
||||||
|
|
||||||
for (int32 index =0; ; index++) {
|
|
||||||
const char *signature;
|
|
||||||
int32 length;
|
|
||||||
|
|
||||||
if (message.FindData("applications", 'CSTR', index, (const void **)&signature,
|
|
||||||
&length) != B_OK)
|
|
||||||
break;
|
|
||||||
|
|
||||||
// push each of the supporting apps signature uniquely
|
// push each of the supporting apps signature uniquely
|
||||||
|
|
||||||
|
const char *signature;
|
||||||
|
for (int32 index = 0; message.FindString("applications", index,
|
||||||
|
&signature) == B_OK; index++) {
|
||||||
queryIterator->PushUniqueSignature(signature);
|
queryIterator->PushUniqueSignature(signature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1222,12 +1218,12 @@ SearchForSignatureEntryList::GetNextDirents(struct dirent *buffer,
|
|||||||
return fIteratorList->GetNextDirents(buffer, length, count);
|
return fIteratorList->GetNextDirents(buffer, length, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct AddOneTermParams {
|
struct AddOneTermParams {
|
||||||
BString *result;
|
BString *result;
|
||||||
bool first;
|
bool first;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static const BString *
|
static const BString *
|
||||||
AddOnePredicateTerm(const BString *item, void *castToParams)
|
AddOnePredicateTerm(const BString *item, void *castToParams)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user