Ticket #2200: database_access.diff

File database_access.diff, 0.8 kB (added by shinta, 2 weeks ago)
  • src/build/libbe/storage/mime/database_access.cpp

    old new  
    208208get_icon_for_type(const char *type, const char *fileType, BBitmap *icon, 
    209209                                                           icon_size which) 
    210210{ 
     211        ssize_t err; 
     212        BNode node; 
     213 
     214        err = type && icon ? B_OK : B_BAD_VALUE; 
     215        if (!err)  
     216                err = open_type(type, &node); 
     217        if (!err) 
     218                err = BIconUtils::GetIcon(&node, kNIIconAttribute, kNIMiniIconAttribute, 
     219                                                           kNILargeIconAttribute, which, icon); 
     220        return err; 
     221 
     222#if 0 
    211223        std::string attr;                
    212224        attr_info info; 
    213225        ssize_t err; 
     
    281293        } 
    282294 
    283295        return err; 
     296#endif 
    284297} 
    285298 
    286299// get_preferred_app