Skip to content

Commit

Permalink
changed newInManagedObjectContext: to insertInManagedObjectContext: t…
Browse files Browse the repository at this point in the history
…o 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 <jwr.git@redshed.net>
  • Loading branch information
Ruotger Skupin authored and rentzsch committed May 13, 2009
1 parent 069d48a commit 25ad62d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/machine.h.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@end

@interface _<$managedObjectClassName$> : <$customSuperentity$> {}
+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_;
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (<$managedObjectClassName$>ID*)objectID;

<$foreach Attribute noninheritedAttributes do$>
Expand Down
2 changes: 1 addition & 1 deletion templates/machine.m.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@implementation _<$managedObjectClassName$>

+ (id)newInManagedObjectContext:(NSManagedObjectContext*)moc_ {
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
return [NSEntityDescription insertNewObjectForEntityForName:@"<$name$>" inManagedObjectContext:moc_];
}

Expand Down

0 comments on commit 25ad62d

Please sign in to comment.