diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-22 18:32:33 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-22 18:32:33 -0800 |
commit | 140710bada68cfe2758434a755b3349add1bc728 (patch) | |
tree | f40dd8692e18b7b66f32e6f17aa9d0025608c284 /MobileCydia.mm | |
parent | 12835c9d6d82aeabaa962b541fd676a30b444c1a (diff) |
Use stack to store temporary SHA1SumValues.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 14 |
1 files 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<NSString> 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<uint8_t *>(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<uint8_t *>(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<uint8_t *>(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<uint8_t *>(mmap.Data()), mmap.Size()); - if (!(springlist_ == sha1.Result())) + if (!(springlist == sha1.Result())) Finish_ = 3; } } |