Skip to content

Commit

Permalink
Added a pair of additional parentheses to the init snippets so that t…
Browse files Browse the repository at this point in the history
…his code does not generate warnings anymore when compiling with -Wall.

git-svn-id: http://svn.textmate.org/trunk@10830 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
torsten committed Nov 19, 2008
1 parent 4c77bce commit 824eab3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Bundles/ODCompletion.tmbundle/Snippets/- init (init).plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>- (id)init
{
if(self = [super init])
if((self = [super init]))
{
$0
}
Expand Down
4 changes: 2 additions & 2 deletions Bundles/Objective-C.tmbundle/Snippets/020 Class (objc).plist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
Expand All @@ -11,7 +11,7 @@
@implementation $1
- (id)init
{
if(self = [super init])
if((self = [super init]))
{$0
}
return self;
Expand Down

0 comments on commit 824eab3

Please sign in to comment.