Ticket #2969: 2969-fix.diff
File 2969-fix.diff, 1.2 KB (added by , 16 years ago) |
---|
-
apps/packageinstaller/PackageInfo.cpp
1092 1092 // Add the item to all groups it resides in 1093 1093 uint32 i, n = fProfiles.CountItems(), mask = 1; 1094 1094 pkg_profile *profile; 1095 1095 1096 fFiles.AddItem(item); 1097 1096 1098 for (i = 0;i < n;i++) { 1097 1099 if (groups & mask) { 1098 1100 profile = static_cast<pkg_profile *>(fProfiles.ItemAt(i)); … … 1117 1119 } 1118 1120 } 1119 1121 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 else1132 break;1133 }1134 }1135 -
apps/packageinstaller/PackageInfo.h
64 64 65 65 struct pkg_profile { 66 66 pkg_profile() : items(10), space_needed(0), path_type(P_SYSTEM_PATH) {} 67 ~pkg_profile() ;67 ~pkg_profile() {} 68 68 69 69 BString name; 70 70 BString description;