Permalink
Browse files

Remove trailing whitespace

Only removed from non-empty lines.
  • Loading branch information...
1 parent 983bce8 commit a0c4af64bd2005c8e004acb6716585578c104fa9 @sorbits sorbits committed Sep 25, 2012
@@ -68,7 +68,7 @@ struct socket_callback_t
(*(helper_base_t*)info)();
}
-private:
+private:
struct helper_base_t
{
WATCH_LEAKS(helper_base_t);
@@ -1,4 +1,4 @@
-{
+{
blank = ( );
text = ( mail, eml, man, txt, text, utf8, README, INSTALL, LICENSE, AUTHORS, ChangeLog );
@@ -88,5 +88,5 @@ - (NSUInteger)hitTestForEvent:(NSEvent*)event inRect:(NSRect)cellFrame ofView:(N
else if(NSMouseInRect(point, textRect, controlView.isFlipped))
res = NSCellHitContentArea|NSCellHitEditableTextArea|OakImageAndTextCellHitText;
return res;
-}
+}
@end
@@ -40,7 +40,7 @@ - (void)updateMenu:(NSMenu*)aMenu withSelector:(SEL)aSelector
if(id delegate = [NSApp targetForAction:aSelector])
[delegate performSelector:aSelector withObject:aMenu];
else [aMenu addItemWithTitle:@"no items" action:NULL keyEquivalent:@""];
- D(DBF_OakSubmenuController, bug("%s\n", [[aMenu description] UTF8String]););
+ D(DBF_OakSubmenuController, bug("%s\n", [[aMenu description] UTF8String]););
}
- (void)menuNeedsUpdate:(NSMenu*)aMenu
@@ -50,7 +50,7 @@ - (void)menuNeedsUpdate:(NSMenu*)aMenu
- (BOOL)menuHasKeyEquivalent:(NSMenu*)aMenu forEvent:(NSEvent*)anEvent target:(id*)anId action:(SEL*)aSEL
{
- D(DBF_OakSubmenuController, bug("%s %s\n", to_s(anEvent).c_str(), [[aMenu description] UTF8String]););
+ D(DBF_OakSubmenuController, bug("%s %s\n", to_s(anEvent).c_str(), [[aMenu description] UTF8String]););
if(aMenu != goToMenu)
return NO;
@@ -75,7 +75,7 @@ - (void)setFont:(NSFont*)aFont
- (void)setStringValue:(NSString*)aString
{
- D(DBF_OakToolTip, bug("%s\n", [aString UTF8String]););
+ D(DBF_OakToolTip, bug("%s\n", [aString UTF8String]););
ASSERT(aString != nil);
[field setStringValue:aString];
}
@@ -790,7 +790,7 @@ - (void)loadFileBrowserOptions
- (void)saveFileBrowserOptions
{
- NSMutableArray* array = [NSMutableArray array];
+ NSMutableArray* array = [NSMutableArray array];
iterate(it, DataSourceOptionsMap)
{
if((dataSourceOptions & it->flag) == it->flag)
@@ -326,7 +326,7 @@ - (void)updateStyle
[textScrollView setScrollerKnobStyle:NSScrollerKnobStyleDark];
}
- [self setFont:textView.font]; // trigger update of gutter view’s line number font
+ [self setFont:textView.font]; // trigger update of gutter view’s line number font
auto styles = theme->gutter_styles();
gutterView.foregroundColor = [NSColor tmColorWithCGColor:styles.foreground];
@@ -1528,14 +1528,14 @@ - (IBAction)incrementalSearch:(id)sender
{
if(liveSearchViewController)
[self findNext:self];
- else [self setShowLiveSearch:YES];
+ else [self setShowLiveSearch:YES];
}
- (IBAction)incrementalSearchPrevious:(id)sender
{
if(liveSearchViewController)
[self findPrevious:self];
- else [self setShowLiveSearch:YES];
+ else [self setShowLiveSearch:YES];
}
- (IBAction)showBundlesMenu:(id)sender
@@ -187,7 +187,7 @@ namespace document
_document->post_load(path, io::bytes_ptr(), std::map<std::string, std::string>(), NULL_STR, NULL_STR, encoding::type());
iterate(cb, callbacks)
- (*cb)->show_error(path, doc, message, filter);
+ (*cb)->show_error(path, doc, message, filter);
}
private:
@@ -173,7 +173,7 @@ namespace file
error = text::format("Setting extended attributes: %s", strerror(errno));
}
else if(status == kFileTestWritableByRoot || status == kFileTestNotWritable)
- {
+ {
if(connection_t conn = connect_to_auth_server(request.authorization))
{
conn << "write" << request.path << std::string(request.bytes->begin(), request.bytes->end()) << request.attributes;
@@ -326,7 +326,7 @@ namespace path
CFURLRef url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, (UInt8 const*)path.data(), path.size(), is_directory(path));
if(!url) return false;
CFBooleanRef pathIsLocal;
- bool ok = CFURLCopyResourcePropertyForKey(url, kCFURLVolumeIsLocalKey, &pathIsLocal, NULL);
+ bool ok = CFURLCopyResourcePropertyForKey(url, kCFURLVolumeIsLocalKey, &pathIsLocal, NULL);
CFRelease(url);
if(!ok) return false;
return (pathIsLocal == kCFBooleanTrue);
@@ -44,7 +44,7 @@
*/
-OnigOptionType convert (parser::regexp_options::type const& options)
+OnigOptionType convert (parser::regexp_options::type const& options)
{
OnigOptionType res = ONIG_OPTION_NONE;
if(options & parser::regexp_options::i)
@@ -307,7 +307,7 @@ namespace ng
size_t fromLine = std::min(lineA, lineB), fromCol = std::min(colA, colB);
size_t toLine = std::max(lineA, lineB), toCol = std::max(colA, colB);
- for(size_t n = fromLine; n <= toLine; ++n)
+ for(size_t n = fromLine; n <= toLine; ++n)
{
index_t from = at_column(buffer, n, fromCol), to = at_column(buffer, n, toCol);
res.push_back(range_t(from, to, false, from.carry || to.carry));

0 comments on commit a0c4af6

Please sign in to comment.