summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-15 23:16:55 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-11-15 23:17:10 -0800
commit9ac3d6ee0f73e25fba16ee8b9656cbfd154a5c80 (patch)
tree728c8ec12c9d71efac260b67982a9e8f6fc34827 /MobileCydia.mm
parent4fa77608c7826371d1c3a3cba2ecb4ab2398d4d2 (diff)
Store Sections.plist using space characters rather than underscores.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm6
1 files changed, 2 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index e98ac80..da758d3 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -1974,8 +1974,6 @@ struct PackageNameOrdering :
- (void) dealloc {
if (source_ != nil)
[source_ release];
- if (section$_ != nil)
- [section$_ release];
if (latest_ != nil)
[latest_ release];
@@ -2251,7 +2249,7 @@ struct PackageNameOrdering :
if (section_.empty())
return nil;
- std::replace(section_.data(), section_.data() + section_.size(), ' ', '_');
+ std::replace(section_.data(), section_.data() + section_.size(), '_', ' ');
NSString *name(section_);
lookup:
@@ -2261,7 +2259,7 @@ struct PackageNameOrdering :
goto lookup;
}
- section$_ = [[name stringByReplacingCharacter:'_' withCharacter:' '] retain];
+ section$_ = name;
} return section$_;
}