Skip to content

Commit de2364d

Browse files
committed
Formatted code with the new Uncrustify settings.
1 parent 314cebd commit de2364d

128 files changed

Lines changed: 507 additions & 507 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

QCPlugin/CPTBarPlotPlugin.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ -(BOOL)configurePlots
177177
plot.barWidth = @(barWidth);
178178
plot.barOffset = @(self.inputBarOffset);
179179
plot.barsAreHorizontal = self.inputHorizontalBars;
180-
plot.fill = [CPTFill fillWithColor:[CPTColor colorWithCGColor:(CGColorRef)[self areaFillColor : index]]];
180+
plot.fill = [CPTFill fillWithColor:[CPTColor colorWithCGColor:(CGColorRef)[self areaFillColor:index]]];
181181

182182
[plot reloadData];
183183
}

QCPlugin/CPTPieChartPlugin.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ -(id)numberForPlot:(CPTPlot *)plot field:(NSUInteger)fieldEnum recordIndex:(NSUI
242242
-(CPTFill *)sliceFillForPieChart:(CPTPieChart *)pieChart recordIndex:(NSUInteger)index
243243
{
244244
CGColorRef plotFillColor = [[CPTPieChart defaultPieSliceColorForIndex:index] cgColor];
245-
CGColorRef inputFillColor = (CGColorRef)[self areaFillColor : 0];
245+
CGColorRef inputFillColor = (CGColorRef)[self areaFillColor:0];
246246

247247
const CGFloat *plotColorComponents = CGColorGetComponents(plotFillColor);
248248
const CGFloat *inputColorComponents = CGColorGetComponents(inputFillColor);

QCPlugin/CorePlotQCPlugin.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ -(void)setSerializedValue:(id)serializedValue forKey:(NSString *)key
699699
*/
700700

701701
if ( [key isEqualToString:@"numberOfPlots"] ) {
702-
[self setNumberOfPlots:MAX(1, [(NSNumber *)serializedValue unsignedIntegerValue])];
702+
[self setNumberOfPlots:MAX(1, [(NSNumber *) serializedValue unsignedIntegerValue])];
703703
}
704704
else {
705705
[super setSerializedValue:serializedValue forKey:key];
@@ -824,7 +824,7 @@ -(BOOL)execute:(id<QCPlugInContext>)context atTime:(NSTimeInterval)time withArgu
824824
drawErrorText( bmContext, CPTRectMake(0, 0, self.inputPixelsWide, self.inputPixelsHigh) );
825825
}
826826

827-
//CGContextSetAllowsAntialiasing(bitmapContext, false);
827+
// CGContextSetAllowsAntialiasing(bitmapContext, false);
828828
CGContextFlush(bmContext);
829829

830830
// ... and put it on the output port

examples/AAPLot/APFinancialData.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ +(CPTDictionary)dictionaryWithCSVLine:(NSString *)csvLine
2727
NSDecimalNumber *theAdjClose = [NSDecimalNumber decimalNumberWithString:csvChunks[6]];
2828
csvDict[@"adjClose"] = theAdjClose;
2929

30-
//non-mutable autoreleased dict
30+
// non-mutable autoreleased dict
3131
return [NSDictionary dictionaryWithDictionary:csvDict];
3232
}
3333

examples/AAPLot/APYahooDataPuller.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ -(void)setDelegate:(id)aDelegate
5959
if ( delegate != aDelegate ) {
6060
delegate = aDelegate;
6161
if ( self.financialData.count > 0 ) {
62-
[self notifyPulledData]; //loads cached data onto UI
62+
[self notifyPulledData]; // loads cached data onto UI
6363
}
6464
}
6565
}
@@ -121,13 +121,13 @@ -(NSString *)faultTolerantPathForSymbol:(NSString *)aSymbol
121121
NSString *docPath = [self pathForSymbol:aSymbol];
122122

123123
if ( ![[NSFileManager defaultManager] fileExistsAtPath:docPath] ) {
124-
//if there isn't one in the user's documents directory, see if we ship with this data
124+
// if there isn't one in the user's documents directory, see if we ship with this data
125125
docPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.plist", aSymbol]];
126126
}
127127
return docPath;
128128
}
129129

130-
//Always returns *something*
130+
// Always returns *something*
131131
-(CPTDictionary)dictionaryForSymbol:(NSString *)aSymbol
132132
{
133133
NSString *path = [self faultTolerantPathForSymbol:aSymbol];
@@ -158,7 +158,7 @@ -(instancetype)initWithTargetSymbol:(NSString *)aSymbol targetStartDate:(NSDate
158158

159159
-(instancetype)init
160160
{
161-
NSTimeInterval secondsAgo = -timeIntervalForNumberOfWeeks(14.0); //12 weeks ago
161+
NSTimeInterval secondsAgo = -timeIntervalForNumberOfWeeks(14.0); // 12 weeks ago
162162
NSDate *start = [NSDate dateWithTimeIntervalSinceNow:secondsAgo];
163163

164164
NSDate *end = [NSDate date];
@@ -239,7 +239,7 @@ -(void)fetch
239239
self.receivedData = [NSMutableData data];
240240
}
241241
else {
242-
//TODO: Inform the user that the download could not be started
242+
// TODO: Inform the user that the download could not be started
243243
self.loadingData = NO;
244244
}
245245
}
@@ -277,7 +277,7 @@ -(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)erro
277277
self.receivedData = nil;
278278
self.connection = nil;
279279
NSLog(@"err = %@", [error localizedDescription]);
280-
//TODO:report err
280+
// TODO:report err
281281
}
282282

283283
-(void)connectionDidFinishLoading:(NSURLConnection *)connection
@@ -291,7 +291,7 @@ -(void)connectionDidFinishLoading:(NSURLConnection *)connection
291291
self.receivedData = nil;
292292
[self parseCSVAndPopulate];
293293

294-
//see if we need to write to file
294+
// see if we need to write to file
295295
CPTDictionary dictionaryForSymbol = [self dictionaryForSymbol:self.symbol];
296296

297297
BOOL sameSymbol = NO;

examples/AAPLot/Classes/AAPLotAppDelegate.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//
2-
// AAPLotAppDelegate.h
3-
// AAPLot
2+
// AAPLotAppDelegate.h
3+
// AAPLot
44
//
5-
// Created by Jonathan Saggau on 6/9/09.
6-
// Copyright Sounds Broken inc. 2009. All rights reserved.
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
77
//
88

99
#import <UIKit/UIKit.h>

examples/AAPLot/Classes/AAPLotAppDelegate.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//
2-
// AAPLotAppDelegate.m
3-
// AAPLot
2+
// AAPLotAppDelegate.m
3+
// AAPLot
44
//
5-
// Created by Jonathan Saggau on 6/9/09.
6-
// Copyright Sounds Broken inc. 2009. All rights reserved.
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
77
//
88

99
#import "AAPLotAppDelegate.h"

examples/AAPLot/Classes/FlipsideView.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//
2-
// FlipsideView.h
3-
// AAPLot
2+
// FlipsideView.h
3+
// AAPLot
44
//
5-
// Created by Jonathan Saggau on 6/9/09.
6-
// Copyright Sounds Broken inc. 2009. All rights reserved.
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
77
//
88

99
#import <UIKit/UIKit.h>

examples/AAPLot/Classes/FlipsideView.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//
2-
// FlipsideView.m
3-
// AAPLot
2+
// FlipsideView.m
3+
// AAPLot
44
//
5-
// Created by Jonathan Saggau on 6/9/09.
6-
// Copyright Sounds Broken inc. 2009. All rights reserved.
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
77
//
88

99
#import "FlipsideView.h"

examples/AAPLot/Classes/FlipsideViewController.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//
2-
// FlipsideViewController.h
3-
// AAPLot
2+
// FlipsideViewController.h
3+
// AAPLot
44
//
5-
// Created by Jonathan Saggau on 6/9/09.
6-
// Copyright Sounds Broken inc. 2009. All rights reserved.
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
77
//
88

99
#import <UIKit/UIKit.h>

0 commit comments

Comments
 (0)