From 140710bada68cfe2758434a755b3349add1bc728 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 22 Feb 2011 18:32:33 -0800 Subject: Use stack to store temporary SHA1SumValues. --- MobileCydia.mm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 907498a..a16e8ab 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4763,8 +4763,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { UITextView *output_; UITextLabel *status_; UIPushButton *close_; - SHA1SumValue springlist_; - SHA1SumValue notifyconf_; _H title_; } @@ -4934,7 +4932,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [delegate_ retainNetworkActivityIndicator]; - { + SHA1SumValue notifyconf; { FileFd file; if (!file.Open(NotifyConfig_, FileFd::ReadOnly)) _error->Discard(); @@ -4942,11 +4940,11 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { MMap mmap(file, MMap::ReadOnly); SHA1Summation sha1; sha1.Add(reinterpret_cast(mmap.Data()), mmap.Size()); - notifyconf_ = sha1.Result(); + notifyconf = sha1.Result(); } } - { + SHA1SumValue springlist; { FileFd file; if (!file.Open(SpringBoard_, FileFd::ReadOnly)) _error->Discard(); @@ -4954,7 +4952,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { MMap mmap(file, MMap::ReadOnly); SHA1Summation sha1; sha1.Add(reinterpret_cast(mmap.Data()), mmap.Size()); - springlist_ = sha1.Result(); + springlist = sha1.Result(); } } @@ -4975,7 +4973,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { MMap mmap(file, MMap::ReadOnly); SHA1Summation sha1; sha1.Add(reinterpret_cast(mmap.Data()), mmap.Size()); - if (!(notifyconf_ == sha1.Result())) + if (!(notifyconf == sha1.Result())) Finish_ = 4; } } @@ -4988,7 +4986,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { MMap mmap(file, MMap::ReadOnly); SHA1Summation sha1; sha1.Add(reinterpret_cast(mmap.Data()), mmap.Size()); - if (!(springlist_ == sha1.Result())) + if (!(springlist == sha1.Result())) Finish_ = 3; } } -- cgit v1.2.3