From 4d15b486478458509961cc3633e933b3d3712f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sundstr=C3=B6m?= Date: Sat, 5 Mar 2011 12:11:45 +0000 Subject: [PATCH] Reordering for readability. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40813 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/Utilities.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/kits/tracker/Utilities.cpp b/src/kits/tracker/Utilities.cpp index daf6ab62ad..cb9cc6cb2a 100644 --- a/src/kits/tracker/Utilities.cpp +++ b/src/kits/tracker/Utilities.cpp @@ -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);