From fca835f13437da500ed9c69d32371a97a6470b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sundstr=C3=B6m?= Date: Fri, 4 Mar 2011 18:42:48 +0000 Subject: [PATCH] Style fixes. Thanks, Axel! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40809 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/Utilities.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/kits/tracker/Utilities.cpp b/src/kits/tracker/Utilities.cpp index aaf079a340..daf6ab62ad 100644 --- a/src/kits/tracker/Utilities.cpp +++ b/src/kits/tracker/Utilities.cpp @@ -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