From: Jay Freeman (saurik) Date: Sun, 13 Feb 2011 02:41:47 +0000 (-0800) Subject: -[SectionController initWithDatabase:section:] stored fields outside of self scope. X-Git-Tag: v1.1.0%b1~357 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/3707eb56b3f0ffbaca44fb7a616571270cdceaf7 -[SectionController initWithDatabase:section:] stored fields outside of self scope. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 96736654..832cd654 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -6679,18 +6679,15 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { - (id) initWithDatabase:(Database *)database section:(NSString *)name { NSString *title; - - if (name == nil) { + if (name == nil) title = UCLocalize("ALL_PACKAGES"); - } else if (![name isEqual:@""]) { + else if (![name isEqual:@""]) title = [[NSBundle mainBundle] localizedStringForKey:Simplify(name) value:nil table:@"Sections"]; - } else { + else title = UCLocalize("NO_SECTION"); - } - - section_ = name; if ((self = [super initWithDatabase:database title:title filter:@selector(isVisibleInSection:) with:name]) != nil) { + section_ = name; } return self; }