Reordering for readability.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40813 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4e401f8153
commit
4d15b48647
@ -1519,19 +1519,19 @@ GetLocalizedFileName(entry_ref& ref, BString& localizedFileName, bool traverse)
|
||||
|
||||
char* signature = attribute;
|
||||
char* context = strchr(signature, ':');
|
||||
if (context != NULL) {
|
||||
context[0] = '\0';
|
||||
context++;
|
||||
} else
|
||||
if (context == NULL)
|
||||
return B_ENTRY_NOT_FOUND;
|
||||
|
||||
context[0] = '\0';
|
||||
context++;
|
||||
|
||||
char* string = strchr(context, ':');
|
||||
if (string != NULL) {
|
||||
string[0] = '\0';
|
||||
string++;
|
||||
} else
|
||||
if (string == NULL)
|
||||
return B_ENTRY_NOT_FOUND;
|
||||
|
||||
string[0] = '\0';
|
||||
string++;
|
||||
|
||||
BCatalog catalog(signature);
|
||||
|
||||
const char* temp = catalog.GetString(string, context);
|
||||
|
Loading…
Reference in New Issue
Block a user