summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-07 04:25:54 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 06:10:50 -0800
commit9f9ae81c2742d82fa45dcabceed3e988bdac095c (patch)
tree02cc45de01f0b5384022b443bae70adb06e1fdd6 /MobileCydia.mm
parent8fec9d25c45228642795f108ec8422cb9a36eac1 (diff)
Use -fvisibility=hidden.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm19
1 files changed, 10 insertions, 9 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 2a76717..c072c26 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3036,6 +3036,15 @@ static NSString *Elision_;
static NSString *Error_;
static NSString *Warning_;
+class CydiaLogCleaner :
+ public pkgArchiveCleaner
+{
+ protected:
+ virtual void Erase(const char *File, std::string Pkg, std::string Ver, struct stat &St) {
+ unlink(File);
+ }
+};
+
/* Database Implementation {{{ */
@implementation Database
@@ -3498,15 +3507,7 @@ static NSString *Warning_;
pkgAcquire fetcher;
fetcher.Clean(_config->FindDir("Dir::Cache::Archives"));
- class LogCleaner :
- public pkgArchiveCleaner
- {
- protected:
- virtual void Erase(const char *File, std::string Pkg, std::string Ver, struct stat &St) {
- unlink(File);
- }
- } cleaner;
-
+ CydiaLogCleaner cleaner;
if ([self popErrorWithTitle:title forOperation:cleaner.Go(_config->FindDir("Dir::Cache::Archives") + "partial/", cache_)])
return false;