Style fixes. Thanks, Axel!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40809 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
65763c9728
commit
fca835f134
@ -1470,9 +1470,7 @@ GetFileIconFromAttr(BNode *file, BBitmap *result, icon_size size)
|
||||
}
|
||||
|
||||
|
||||
/*! \fn status_t GetLocalizedFileName(entry_ref& ref,
|
||||
BString& localizedFileName, bool traverse)
|
||||
\brief Looks up a localized filename in a catalog, using attribute data
|
||||
/*! \brief Looks up a localized filename in a catalog, using attribute data
|
||||
on the entry.
|
||||
\param ref An entry_ref with an attribute holding data for catalog lookup.
|
||||
\param localizedFileName A pre-allocated BString object for the result
|
||||
@ -1521,14 +1519,14 @@ GetLocalizedFileName(entry_ref& ref, BString& localizedFileName, bool traverse)
|
||||
|
||||
char* signature = attribute;
|
||||
char* context = strchr(signature, ':');
|
||||
if (context) {
|
||||
if (context != NULL) {
|
||||
context[0] = '\0';
|
||||
context++;
|
||||
} else
|
||||
return B_ENTRY_NOT_FOUND;
|
||||
|
||||
char* string = strchr(context, ':');
|
||||
if (string) {
|
||||
if (string != NULL) {
|
||||
string[0] = '\0';
|
||||
string++;
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user