[haiku-commits] r40809 - haiku/trunk/src/kits/tracker

  • From: jonas@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 4 Mar 2011 19:42:48 +0100 (CET)

Author: kirilla
Date: 2011-03-04 19:42:48 +0100 (Fri, 04 Mar 2011)
New Revision: 40809
Changeset: http://dev.haiku-os.org/changeset/40809

Modified:
   haiku/trunk/src/kits/tracker/Utilities.cpp
Log:
Style fixes. Thanks, Axel!

Modified: haiku/trunk/src/kits/tracker/Utilities.cpp
===================================================================
--- haiku/trunk/src/kits/tracker/Utilities.cpp  2011-03-04 18:04:10 UTC (rev 
40808)
+++ haiku/trunk/src/kits/tracker/Utilities.cpp  2011-03-04 18:42:48 UTC (rev 
40809)
@@ -1470,9 +1470,7 @@
 }
 
 
-/*!    \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 @@
 
        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


Other related posts: