Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add missing braces and add memdebug macros.

  • Loading branch information...
commit 977540fb0532f3a8c61b0e0ffe366b4e281094d1 1 parent 5a2114a
@martinh martinh authored
View
2  app/PSMTabBarControl.m
@@ -402,7 +402,7 @@ - (void)addTabViewItem:(NSTabViewItem *)item
- (void)removeTabForCell:(PSMTabBarCell *)cell
{
- MEMDEBUG(@"remove cell %@", cell);
+ DEBUG(@"remove cell %@", cell);
// unbind
[[cell indicator] unbind:@"animate"];
View
1  app/ViTabController.m
@@ -31,6 +31,7 @@ - (id)initWithViewController:(ViViewController *)initialViewController
[self addView:initialViewController];
[self setSelectedView:initialViewController];
}
+ DEBUG_INIT();
return self;
}
View
9 app/ViWindowController.m
@@ -78,9 +78,8 @@ - (id)init
[_jumpList setDelegate:self];
_parser = [[ViParser alloc] initWithDefaultMap:[ViMap normalMap]];
[self setBaseURL:[NSURL fileURLWithPath:NSHomeDirectory()]];
- MEMDEBUG(@"init %@", self);
}
-
+ DEBUG_INIT();
return self;
}
@@ -1182,15 +1181,17 @@ - (void)didCloseDocument:(ViDocument *)document andWindow:(BOOL)canCloseWindow
NSMutableSet *set = [NSMutableSet set];
for (docView in [document views]) {
DEBUG(@"docview %@ in window %@", docView, [[docView tabController] window]);
- if ([[docView tabController] window] == [self window])
+ if ([[docView tabController] window] == [self window]) {
[set addObject:docView];
+ }
}
DEBUG(@"closing remaining views in window %@: %@", [self window], set);
- for (docView in set)
+ for (docView in set) {
[self closeDocumentView:docView
canCloseDocument:YES /* The document is already being closed. */
canCloseWindow:canCloseWindow];
+ }
}
- (void)documentController:(NSDocumentController *)docController
Please sign in to comment.
Something went wrong with that request. Please try again.