GeezerVison is showing github.com — Updated code formatting for Uncrustify 0.69. · core-plot/core-plot@e717543
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: QCPlugin/CPTScatterPlotPlugin.m +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -197,7 +197,7 @@ -(BOOL)configurePlots | 197 | 197 | if ( fillColor ) { | 198 | 198 | plot.areaFill = [CPTFill fillWithColor:[CPTColor colorWithCGColor:fillColor]]; | 199 | 199 | } | 200 | | - plot.areaBaseValue = @(MAX(self.inputYMin, MIN(self.inputYMax, 0.0) ) ); | | 200 | + plot.areaBaseValue = @( MAX( self.inputYMin, MIN(self.inputYMax, 0.0) ) ); | 201 | 201 |
| 202 | 202 | [plot reloadData]; | 203 | 203 | } | |
Collapse file Copy file name to clipboardExpand all lines: QCPlugin/CorePlotQCPlugin.m +8-8Lines changed: 8 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -451,11 +451,11 @@ -(BOOL)configureAxis | 451 | 451 | set.xAxis.labelTextStyle = textStyle; | 452 | 452 |
| 453 | 453 | double xrange = self.inputXMax - self.inputXMin; | 454 | | - set.xAxis.majorIntervalLength = @(xrange / (self.inputXMajorIntervals) ); | | 454 | + set.xAxis.majorIntervalLength = @( xrange / (self.inputXMajorIntervals) ); | 455 | 455 | set.xAxis.minorTicksPerInterval = self.inputXMinorIntervals; | 456 | 456 |
| 457 | 457 | double yrange = self.inputYMax - self.inputYMin; | 458 | | - set.yAxis.majorIntervalLength = @(yrange / (self.inputYMajorIntervals) ); | | 458 | + set.yAxis.majorIntervalLength = @( yrange / (self.inputYMajorIntervals) ); | 459 | 459 | set.yAxis.minorTicksPerInterval = self.inputYMinorIntervals; | 460 | 460 |
| 461 | 461 | set.xAxis.minorTickLength = self.inputAxisMinorTickLength; | @@ -577,7 +577,7 @@ -(void)createImageResourcesWithContext:(nonnull id<QCPlugInContext>)context | 577 | 577 | size_t rowBytes = (size_t)boundsSize.width * 4; | 578 | 578 |
| 579 | 579 | if ( rowBytes % 16 ) { | 580 | | - rowBytes = ( (rowBytes / 16) + 1 ) * 16; | | 580 | + rowBytes = ( (rowBytes / 16) + 1) * 16; | 581 | 581 | } | 582 | 582 |
| 583 | 583 | if ( !self.imageData ) { | @@ -610,7 +610,7 @@ -(void)createImageResourcesWithContext:(nonnull id<QCPlugInContext>)context | 610 | 610 | CGContextRelease(newContext); | 611 | 611 |
| 612 | 612 | if ( rowBytes % 16 ) { | 613 | | - rowBytes = ( (rowBytes / 16) + 1 ) * 16; | | 613 | + rowBytes = ( (rowBytes / 16) + 1) * 16; | 614 | 614 | } | 615 | 615 |
| 616 | 616 | // Note: I don't have a PPC to test on so this may or may not cause some color issues | @@ -751,7 +751,7 @@ -(BOOL)configureGraph | 751 | 751 | */ | 752 | 752 |
| 753 | 753 | // Configure the graph area | 754 | | - CGRect frame = CPTRectMake(0.0, 0.0, MAX(1, self.inputPixelsWide), MAX(1, self.inputPixelsHigh) ); | | 754 | + CGRect frame = CPTRectMake( 0.0, 0.0, MAX(1, self.inputPixelsWide), MAX(1, self.inputPixelsHigh) ); | 755 | 755 |
| 756 | 756 | self.graph.bounds = frame; | 757 | 757 |
| @@ -812,17 +812,17 @@ -(BOOL)execute:(nonnull id<QCPlugInContext>)context atTime:(NSTimeInterval)time | 812 | 812 | // Draw the plot ... | 813 | 813 | CGSize boundsSize = self.graph.bounds.size; | 814 | 814 | CGContextRef bmContext = self.bitmapContext; | 815 | | - CGContextClearRect(bmContext, CPTRectMake(0.0, 0.0, boundsSize.width, boundsSize.height) ); | | 815 | + CGContextClearRect( bmContext, CPTRectMake(0.0, 0.0, boundsSize.width, boundsSize.height) ); | 816 | 816 | CGContextSetRGBFillColor(bmContext, 0.0, 0.0, 0.0, 0.0); | 817 | | - CGContextFillRect(bmContext, CPTRectMake(0, 0, boundsSize.width, boundsSize.height) ); | | 817 | + CGContextFillRect( bmContext, CPTRectMake(0, 0, boundsSize.width, boundsSize.height) ); | 818 | 818 | CGContextSetAllowsAntialiasing(bmContext, true); | 819 | 819 |
| 820 | 820 | if ( configurationCheck ) { | 821 | 821 | [self configurePlots]; | 822 | 822 | [self.graph recursivelyRenderInContext:bmContext]; | 823 | 823 | } | 824 | 824 | else { | 825 | | - drawErrorText(bmContext, CPTRectMake(0, 0, self.inputPixelsWide, self.inputPixelsHigh) ); | | 825 | + drawErrorText( bmContext, CPTRectMake(0, 0, self.inputPixelsWide, self.inputPixelsHigh) ); | 826 | 826 | } | 827 | 827 |
| 828 | 828 | // CGContextSetAllowsAntialiasing(bitmapContext, false); | |
Collapse file Copy file name to clipboardExpand all lines: examples/AAPLot/Classes/MainViewController.m +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -155,7 +155,7 @@ -(nullable CPTNumericData *)dataForPlot:(nonnull CPTPlot *)plot recordIndexRange | 155 | 155 | numFields = 2; | 156 | 156 | } | 157 | 157 |
| 158 | | - NSMutableData *data = [[NSMutableData alloc] initWithLength:indexRange.length * numFields * (useDoubles ? sizeof(double) : sizeof(NSDecimal) )]; | | 158 | + NSMutableData *data = [[NSMutableData alloc] initWithLength:indexRange.length * numFields * ( useDoubles ? sizeof(double) : sizeof(NSDecimal) )]; | 159 | 159 |
| 160 | 160 | const NSUInteger maxIndex = NSMaxRange(indexRange); | 161 | 161 |
| @@ -376,7 +376,7 @@ -(nullable CPTNumericData *)dataForPlot:(nonnull CPTPlot *)plot recordIndexRange | 376 | 376 | numFields = 2; | 377 | 377 | } | 378 | 378 |
| 379 | | - NSMutableData *data = [[NSMutableData alloc] initWithLength:indexRange.length * numFields * (useDoubles ? sizeof(double) : sizeof(NSDecimal) )]; | | 379 | + NSMutableData *data = [[NSMutableData alloc] initWithLength:indexRange.length * numFields * ( useDoubles ? sizeof(double) : sizeof(NSDecimal) )]; | 380 | 380 |
| 381 | 381 | const NSUInteger maxIndex = NSMaxRange(indexRange); | 382 | 382 |
| @@ -652,7 +652,7 @@ -(void)dataPullerDidFinishFetch:(nonnull APYahooDataPuller *)dp | 652 | 652 | animationOperation = [CPTAnimation animate:volumePlotSpace | 653 | 653 | property:@"yRange" | 654 | 654 | fromPlotRange:[CPTPlotRange plotRangeWithLocationDecimal:volumeLowDisplayLocation.decimalValue | 655 | | - lengthDecimal:CPTDecimalMultiply(volumeLengthDisplayLocation.decimalValue, CPTDecimalFromInteger(10) )] | | 655 | + lengthDecimal:CPTDecimalMultiply( volumeLengthDisplayLocation.decimalValue, CPTDecimalFromInteger(10) )] | 656 | 656 | toPlotRange:[CPTPlotRange plotRangeWithLocation:volumeLowDisplayLocation | 657 | 657 | length:volumeLengthDisplayLocation] | 658 | 658 | duration:2.5]; | |
Collapse file Copy file name to clipboardExpand all lines: examples/CPTTestApp/Source/CPTPlotSymbolTestController.m +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -82,7 +82,7 @@ -(nullable id)numberForPlot:(nonnull CPTPlot *)plot field:(NSUInteger)fieldEnum | 82 | 82 | break; | 83 | 83 |
| 84 | 84 | case CPTScatterPlotFieldY: | 85 | | - num = @( ( (NSString *)plot.identifier ).integerValue ); | | 85 | + num = @( ( (NSString *)plot.identifier).integerValue); | 86 | 86 | break; | 87 | 87 |
| 88 | 88 | default: | @@ -103,7 +103,7 @@ -(nullable CPTPlotSymbol *)symbolForScatterPlot:(nonnull CPTScatterPlot *)plot r | 103 | 103 | symbolShadow.shadowColor = [CPTColor blackColor]; | 104 | 104 |
| 105 | 105 | CPTPlotSymbol *symbol = [[CPTPlotSymbol alloc] init]; | 106 | | - symbol.symbolType = (CPTPlotSymbolType)( (NSString *)plot.identifier ).intValue; | | 106 | + symbol.symbolType = (CPTPlotSymbolType)( (NSString *)plot.identifier).intValue; | 107 | 107 | symbol.fill = [CPTFill fillWithGradient:gradientFill]; | 108 | 108 | symbol.shadow = symbolShadow; | 109 | 109 |
| @@ -116,9 +116,9 @@ -(nullable CPTPlotSymbol *)symbolForScatterPlot:(nonnull CPTScatterPlot *)plot r | 116 | 116 | CGMutablePathRef path = CGPathCreateMutable(); | 117 | 117 | CGPathMoveToPoint(path, NULL, 0., 0.); | 118 | 118 |
| 119 | | - CGPathAddEllipseInRect(path, NULL, CGRectMake(0., 0., 10., 10.) ); | 120 | | - CGPathAddEllipseInRect(path, NULL, CGRectMake(1.5, 4., 3., 3.) ); | 121 | | - CGPathAddEllipseInRect(path, NULL, CGRectMake(5.5, 4., 3., 3.) ); | | 119 | + CGPathAddEllipseInRect( path, NULL, CGRectMake(0., 0., 10., 10.) ); | | 120 | + CGPathAddEllipseInRect( path, NULL, CGRectMake(1.5, 4., 3., 3.) ); | | 121 | + CGPathAddEllipseInRect( path, NULL, CGRectMake(5.5, 4., 3., 3.) ); | 122 | 122 | CGPathMoveToPoint(path, NULL, 5., 2.); | 123 | 123 | CGPathAddArc(path, NULL, 5., 3.3, 2.8, 0., M_PI, TRUE); | 124 | 124 | CGPathCloseSubpath(path); | |
Collapse file Copy file name to clipboardExpand all lines: examples/CPTTestApp/Source/Controller.m +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -64,7 +64,7 @@ -(void)awakeFromNib | 64 | 64 |
| 65 | 65 | -(id)newObject | 66 | 66 | { | 67 | | - NSNumber *x1 = @(1.0 + ( (NSMutableArray *)self.content ).count * 0.05); | | 67 | + NSNumber *x1 = @(1.0 + ( (NSMutableArray *)self.content).count * 0.05); | 68 | 68 | NSNumber *y1 = @(1.2 * arc4random() / (double)UINT32_MAX + 1.2); | 69 | 69 |
| 70 | 70 | return @{ | @@ -780,7 +780,7 @@ -(void)setLabelRotation:(CGFloat)newRotation | 780 | 780 | { | 781 | 781 | labelRotation = newRotation; | 782 | 782 |
| 783 | | - ( (CPTXYAxisSet *)self.graph.axisSet ).yAxis.labelRotation = newRotation; | | 783 | + ( (CPTXYAxisSet *)self.graph.axisSet).yAxis.labelRotation = newRotation; | 784 | 784 | [self.graph plotWithIdentifier:dataSourcePlot].labelRotation = newRotation; | 785 | 785 | } | 786 | 786 |
| |
Collapse file Copy file name to clipboardExpand all lines: examples/CPTTestApp/Source/RotationView.m +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -50,10 +50,10 @@ -(void)mouseDragged:(nonnull NSEvent *)theEvent | 50 | 50 | CGFloat totalRotation = sqrt(displacementInX * displacementInX + displacementInY * displacementInY); | 51 | 51 |
| 52 | 52 | CATransform3D oldTransform = self.rotationTransform; | 53 | | - CATransform3D newTransform = CATransform3DRotate(oldTransform, totalRotation * M_PI / 180.0, | 54 | | - ( (displacementInX / totalRotation) * oldTransform.m12 + (displacementInY / totalRotation) * oldTransform.m11 ), | 55 | | - ( (displacementInX / totalRotation) * oldTransform.m22 + (displacementInY / totalRotation) * oldTransform.m21 ), | 56 | | - ( (displacementInX / totalRotation) * oldTransform.m32 + (displacementInY / totalRotation) * oldTransform.m31 ) ); | | 53 | + CATransform3D newTransform = CATransform3DRotate( oldTransform, totalRotation * M_PI / 180.0, | | 54 | + ( (displacementInX / totalRotation) * oldTransform.m12 + (displacementInY / totalRotation) * oldTransform.m11), | | 55 | + ( (displacementInX / totalRotation) * oldTransform.m22 + (displacementInY / totalRotation) * oldTransform.m21), | | 56 | + ( (displacementInX / totalRotation) * oldTransform.m32 + (displacementInY / totalRotation) * oldTransform.m31) ); | 57 | 57 |
| 58 | 58 | id<CPTRotationDelegate> theDelegate = self.rotationDelegate; | 59 | 59 |
| |
Collapse file Copy file name to clipboardExpand all lines: examples/CorePlotGallery/src/ios/AppDelegate.m +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -35,7 +35,7 @@ -(BOOL)application:(nonnull UIApplication *)application didFinishLaunchingWithOp | 35 | 35 |
| 36 | 36 | -(BOOL)splitViewController:(UISplitViewController *)splitViewController collapseSecondaryViewController:(UIViewController *)secondaryViewController ontoPrimaryViewController:(UIViewController *)primaryViewController | 37 | 37 | { | 38 | | - if ( [secondaryViewController isKindOfClass:[UINavigationController class]] && [( (UINavigationController *)secondaryViewController ).topViewController isKindOfClass:[DetailViewController class]] && ( ( (DetailViewController *)( (UINavigationController *)secondaryViewController ).topViewController ).detailItem == nil ) ) { | | 38 | + if ( [secondaryViewController isKindOfClass:[UINavigationController class]] && [( (UINavigationController *)secondaryViewController).topViewController isKindOfClass:[DetailViewController class]] && ( ( (DetailViewController *)( (UINavigationController *)secondaryViewController).topViewController).detailItem == nil) ) { | 39 | 39 | // Return YES to indicate that we have handled the collapse by doing nothing; the secondary controller will be discarded. | 40 | 40 | return YES; | 41 | 41 | } | |
Collapse file Copy file name to clipboardExpand all lines: examples/CorePlotGallery/src/ios/RootViewController.m +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -50,7 +50,7 @@ -(void)dealloc | 50 | 50 | -(void)prepareForSegue:(nonnull UIStoryboardSegue *)segue sender:(nullable id)sender | 51 | 51 | { | 52 | 52 | if ( [segue.identifier isEqualToString:@"showDetail"] ) { | 53 | | - DetailViewController *controller = (DetailViewController *)( (UINavigationController *)segue.destinationViewController ).topViewController; | | 53 | + DetailViewController *controller = (DetailViewController *)( (UINavigationController *)segue.destinationViewController).topViewController; | 54 | 54 |
| 55 | 55 | controller.navigationItem.leftBarButtonItem = self.splitViewController.displayModeButtonItem; | 56 | 56 | controller.navigationItem.leftItemsSupplementBackButton = YES; | |
Collapse file Copy file name to clipboardExpand all lines: examples/CorePlotGallery/src/ios/main.m +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | int main(int argc, char *argv[]) | 9 | 9 | { | 10 | 10 | @autoreleasepool { | 11 | | - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]) ); | | 11 | + return UIApplicationMain( argc, argv, nil, NSStringFromClass([AppDelegate class]) ); | 12 | 12 | } | 13 | 13 | } |
Collapse file Copy file name to clipboardExpand all lines: examples/CorePlotGallery/src/mac/PlotGalleryController.m +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -167,7 +167,7 @@ -(void)exportTVImageWithSize:(CGSize)size toURL:(NSURL *)url showPlots:(BOOL)sho | 167 | 167 | NSGraphicsContext *bitmapContext = [NSGraphicsContext graphicsContextWithBitmapImageRep:layerImage]; | 168 | 168 | CGContextRef context = (CGContextRef)bitmapContext.graphicsPort; | 169 | 169 |
| 170 | | - CGContextClearRect(context, CGRectMake(0.0, 0.0, boundsSize.width, boundsSize.height) ); | | 170 | + CGContextClearRect( context, CGRectMake(0.0, 0.0, boundsSize.width, boundsSize.height) ); | 171 | 171 | CGContextSetAllowsAntialiasing(context, true); | 172 | 172 | CGContextSetShouldSmoothFonts(context, false); | 173 | 173 | [imageView.layer renderInContext:context]; | |
|