mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-16 01:02:30 +00:00
Fixed compiler warnings and typos
This commit is contained in:
@@ -1922,7 +1922,7 @@
|
|||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
CLASSPREFIX = MP;
|
CLASSPREFIX = MP;
|
||||||
LastUpgradeCheck = 1240;
|
LastUpgradeCheck = 1250;
|
||||||
ORGANIZATIONNAME = "HicknHack Software GmbH";
|
ORGANIZATIONNAME = "HicknHack Software GmbH";
|
||||||
TargetAttributes = {
|
TargetAttributes = {
|
||||||
4C77E36115B84A240093A587 = {
|
4C77E36115B84A240093A587 = {
|
||||||
@@ -2973,6 +2973,7 @@
|
|||||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
@@ -3028,6 +3029,7 @@
|
|||||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Scheme
|
<Scheme
|
||||||
LastUpgradeVersion = "1240"
|
LastUpgradeVersion = "1250"
|
||||||
version = "2.0">
|
version = "2.0">
|
||||||
<BuildAction
|
<BuildAction
|
||||||
parallelizeBuildables = "YES"
|
parallelizeBuildables = "YES"
|
||||||
|
|||||||
@@ -717,14 +717,14 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
|||||||
}
|
}
|
||||||
KPKGroup *newGroup = [self.tree createGroup:parent];
|
KPKGroup *newGroup = [self.tree createGroup:parent];
|
||||||
/* setting properties on entries is undoable, but we do not want to record this so disable on creation */
|
/* setting properties on entries is undoable, but we do not want to record this so disable on creation */
|
||||||
BOOL wasUndoEnabeld = self.undoManager.isUndoRegistrationEnabled;
|
KPK_SCOPED_DISABLE_UNDO_BEGIN(self.undoManager);
|
||||||
|
|
||||||
[self.undoManager disableUndoRegistration];
|
[self.undoManager disableUndoRegistration];
|
||||||
newGroup.title = NSLocalizedString(@"DEFAULT_GROUP_NAME", @"Title for a newly created group");
|
newGroup.title = NSLocalizedString(@"DEFAULT_GROUP_NAME", @"Title for a newly created group");
|
||||||
newGroup.iconId = MPIconFolder;
|
newGroup.iconId = MPIconFolder;
|
||||||
/* re-enable undo/redo if we did turn it off */
|
|
||||||
if(wasUndoEnabeld) {
|
KPK_SCOPED_DISABLE_UNDO_END;
|
||||||
[self.undoManager enableUndoRegistration];
|
|
||||||
}
|
|
||||||
[newGroup addToGroup:parent];
|
[newGroup addToGroup:parent];
|
||||||
[newGroup.undoManager setActionName:NSLocalizedString(@"NEW_GROUP", "Action name for a newly created group")];
|
[newGroup.undoManager setActionName:NSLocalizedString(@"NEW_GROUP", "Action name for a newly created group")];
|
||||||
[NSNotificationCenter.defaultCenter postNotificationName:MPDocumentDidAddGroupNotification
|
[NSNotificationCenter.defaultCenter postNotificationName:MPDocumentDidAddGroupNotification
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ NSString *const MPExpiryDateValueTransformerName = @"com.hicknhack.macpass.MPExp
|
|||||||
static NSDateFormatter *formatter;
|
static NSDateFormatter *formatter;
|
||||||
if(!formatter) {
|
if(!formatter) {
|
||||||
formatter = [[NSDateFormatter alloc] init];
|
formatter = [[NSDateFormatter alloc] init];
|
||||||
formatter.dateStyle = kCFDateFormatterLongStyle;
|
formatter.dateStyle = NSDateFormatterLongStyle;
|
||||||
formatter.timeStyle = NSDateFormatterNoStyle;
|
formatter.timeStyle = NSDateFormatterNoStyle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
self.tree = [[KPKTree alloc] init];
|
self.tree = [[KPKTree alloc] init];
|
||||||
self.tree.root = [[KPKGroup alloc] init];
|
self.tree.root = [[KPKGroup alloc] init];
|
||||||
|
|
||||||
/* FIXEM weak! */
|
/* FIXME: weak! */
|
||||||
self.inheritingGroup = [self.tree createGroup:self.tree.root];
|
self.inheritingGroup = [self.tree createGroup:self.tree.root];
|
||||||
self.includedGroup = [self.tree createGroup:self.tree.root];
|
self.includedGroup = [self.tree createGroup:self.tree.root];
|
||||||
self.excludedGroup = [self.tree createGroup:self.tree.root];
|
self.excludedGroup = [self.tree createGroup:self.tree.root];
|
||||||
|
|||||||
Reference in New Issue
Block a user