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* signature = attribute;
|
||||||
char* context = strchr(signature, ':');
|
char* context = strchr(signature, ':');
|
||||||
if (context != NULL) {
|
if (context == NULL)
|
||||||
context[0] = '\0';
|
|
||||||
context++;
|
|
||||||
} else
|
|
||||||
return B_ENTRY_NOT_FOUND;
|
return B_ENTRY_NOT_FOUND;
|
||||||
|
|
||||||
|
context[0] = '\0';
|
||||||
|
context++;
|
||||||
|
|
||||||
char* string = strchr(context, ':');
|
char* string = strchr(context, ':');
|
||||||
if (string != NULL) {
|
if (string == NULL)
|
||||||
string[0] = '\0';
|
|
||||||
string++;
|
|
||||||
} else
|
|
||||||
return B_ENTRY_NOT_FOUND;
|
return B_ENTRY_NOT_FOUND;
|
||||||
|
|
||||||
|
string[0] = '\0';
|
||||||
|
string++;
|
||||||
|
|
||||||
BCatalog catalog(signature);
|
BCatalog catalog(signature);
|
||||||
|
|
||||||
const char* temp = catalog.GetString(string, context);
|
const char* temp = catalog.GetString(string, context);
|
||||||
|
Loading…
Reference in New Issue
Block a user