From 25ad62d15a21e4ef855f5eb80bee32182a3ad6f4 Mon Sep 17 00:00:00 2001 From: Ruotger Skupin Date: Wed, 13 May 2009 16:50:55 +0800 Subject: [PATCH] changed newInManagedObjectContext: to insertInManagedObjectContext: to satisfy the LLVM/Clang static analyser (see: http://clang.llvm.org/StaticAnalysis.html) *** after this change your code will probably not compile anymore *** Signed-off-by: Jonathan 'Wolf' Rentzsch --- templates/machine.h.motemplate | 2 +- templates/machine.m.motemplate | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/machine.h.motemplate b/templates/machine.h.motemplate index 8a89512d..37ed3edb 100644 --- a/templates/machine.h.motemplate +++ b/templates/machine.h.motemplate @@ -10,7 +10,7 @@ @end @interface _<$managedObjectClassName$> : <$customSuperentity$> {} -+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_; ++ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_; - (<$managedObjectClassName$>ID*)objectID; <$foreach Attribute noninheritedAttributes do$> diff --git a/templates/machine.m.motemplate b/templates/machine.m.motemplate index 74e58dfa..ebce6604 100644 --- a/templates/machine.m.motemplate +++ b/templates/machine.m.motemplate @@ -8,7 +8,7 @@ @implementation _<$managedObjectClassName$> -+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_ { ++ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ { return [NSEntityDescription insertNewObjectForEntityForName:@"<$name$>" inManagedObjectContext:moc_]; }