Ticket #7052: Deskbar_DeskBarUtils_cpp_style_fix.diff

File Deskbar_DeskBarUtils_cpp_style_fix.diff, 2.1 KB (added by jscipione, 13 years ago)
  • src/apps/deskbar/DeskBarUtils.cpp

    diff --git a/src/apps/deskbar/DeskBarUtils.cpp b/src/apps/deskbar/DeskBarUtils.cpp
    index 151fd60..791a809 100644
    a b Except as contained in this notice, the name of Be Incorporated shall not be  
    2626used in advertising or otherwise to promote the sale, use or other dealings in
    2727this Software without prior written authorization from Be Incorporated.
    2828
    29 Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks
    30 of Be Incorporated in the United States and other countries. Other brand product
    31 names are registered trademarks or trademarks of their respective holders.
     29Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered
     30trademarks of Be Incorporated in the United States and other countries. Other
     31brand product names are registered trademarks or trademarks of their respective
     32holders.
    3233All rights reserved.
    3334*/
    3435
    AddRefsToBeMenu(const BMessage* m, entry_ref* subdirectory)  
    6061        int32 count = 0;
    6162        uint32 type = 0;
    6263        entry_ref ref;
    63        
     64
    6465        m->GetInfo("refs", &type, &count);
    6566        if (count <= 0)
    6667            return;
    67            
     68
    6869        BPath path;
    6970        BSymLink link;
    7071        BDirectory dir;
    AddRefsToBeMenu(const BMessage* m, entry_ref* subdirectory)  
    7273            ref = *subdirectory;
    7374            BEntry entry(&ref);
    7475            if (entry.Exists()) {
    75                 //  if the ref is a file
    76                 //  get the parent and convert it to a ref
     76                // if the ref is a file get the parent and convert it to a ref
    7777                if (entry.IsFile()) {
    7878                    BEntry parent;
    7979                    entry.GetParent(&parent);
    AddRefsToBeMenu(const BMessage* m, entry_ref* subdirectory)  
    8181                }
    8282            } else
    8383                return;
    84                
     84
    8585            dir.SetTo(&ref);
    8686        } else {
    8787            if (find_directory(B_USER_DESKBAR_DIRECTORY, &path) == B_OK)
    AddRefsToBeMenu(const BMessage* m, entry_ref* subdirectory)  
    8989            else
    9090                return;
    9191        }
    92            
     92
    9393        for (long i = 0; i < count; i++) {
    9494            if (m->FindRef("refs", i, &ref) == B_NO_ERROR) {
    95 
    9695                BEntry entry(&ref);
    9796                entry.GetPath(&path);
    98                
     97
    9998                dir.CreateSymLink(ref.name, path.Path(), &link);
    10099            }
    101100        }