mirror of
https://github.com/textmate/textmate.git
synced 2026-01-21 04:38:13 -05:00
ARC: Update CrashReporter framework
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#import "CrashReporter.h"
|
||||
#import "find_reports.h"
|
||||
#import <OakFoundation/NSString Additions.h>
|
||||
#import <network/post.h>
|
||||
#import <plist/date.h>
|
||||
#import <io/path.h>
|
||||
@@ -101,7 +102,11 @@ namespace
|
||||
_has_sent.insert(reportsSent.begin(), reportsSent.end());
|
||||
std::vector<std::string> updatedHasSent;
|
||||
std::set_intersection(_could_send.begin(), _could_send.end(), _has_sent.begin(), _has_sent.end(), back_inserter(updatedHasSent));
|
||||
CFPreferencesSetAppValue((CFStringRef)kUserDefaultsCrashReportsSent, cf::wrap(updatedHasSent), kCFPreferencesCurrentApplication);
|
||||
|
||||
NSMutableArray* array = [NSMutableArray array];
|
||||
for(auto path : updatedHasSent)
|
||||
[array addObject:[NSString stringWithCxxString:path]];
|
||||
[[NSUserDefaults standardUserDefaults] setObject:array forKey:kUserDefaultsCrashReportsSent];
|
||||
|
||||
delete this;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
SOURCES = src/*.{mm,cc}
|
||||
EXPORT = src/CrashReporter.h
|
||||
LINK += cf ns io plist network
|
||||
LINK += cf ns io plist network OakFoundation
|
||||
FRAMEWORKS = Foundation AddressBook
|
||||
LIBS += z
|
||||
|
||||
OBJCXX_FLAGS += -fobjc-arc
|
||||
LN_FLAGS += -fobjc-arc-cxxlib=libc++
|
||||
|
||||
Reference in New Issue
Block a user