Ticket #2969: 2969-fix.diff

File 2969-fix.diff, 1.2 KB (added by sil2100, 16 years ago)

Corrected svn diff of the patch

  • apps/packageinstaller/PackageInfo.cpp

     
    10921092    // Add the item to all groups it resides in
    10931093    uint32 i, n = fProfiles.CountItems(), mask = 1;
    10941094    pkg_profile *profile;
    1095                    
     1095
     1096    fFiles.AddItem(item);
     1097
    10961098    for (i = 0;i < n;i++) {
    10971099        if (groups & mask) {
    10981100            profile = static_cast<pkg_profile *>(fProfiles.ItemAt(i));
     
    11171119    }
    11181120}
    11191121
    1120 
    1121 //  #pragma mark -
    1122 
    1123 
    1124 pkg_profile::~pkg_profile()
    1125 {
    1126     PkgItem *iter = 0;
    1127     while (1) {
    1128         iter = static_cast<PkgItem *>(items.RemoveItem((long int)0));
    1129         if (iter)
    1130             delete iter;
    1131         else
    1132             break;
    1133     }
    1134 }
    1135 
  • apps/packageinstaller/PackageInfo.h

     
    6464
    6565struct pkg_profile {
    6666    pkg_profile() : items(10), space_needed(0), path_type(P_SYSTEM_PATH) {}
    67     ~pkg_profile();
     67    ~pkg_profile() {}
    6868
    6969    BString name;
    7070    BString description;