Skip to content

Commit abfa6e1

Browse files
committed
Merge branch 'master' into release-2.0
2 parents 98f584b + 246de17 commit abfa6e1

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

framework/Source/CPTFunctionDataSource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ typedef double (^CPTDataSourceBlock)(double);
1818

1919
@property (nonatomic, readonly) CPTDataSourceFunction dataSourceFunction;
2020
@property (nonatomic, readonly) CPTDataSourceBlock dataSourceBlock;
21-
@property (nonatomic, readonly, cpt_weak_property) __cpt_weak CPTPlot *dataPlot;
21+
@property (nonatomic, readonly) CPTPlot *dataPlot;
2222

2323
@property (nonatomic, readwrite) CGFloat resolution;
2424
@property (nonatomic, readwrite, strong) CPTPlotRange *dataRange;

framework/Source/CPTFunctionDataSource.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
@interface CPTFunctionDataSource()
1515

16-
@property (nonatomic, readwrite, cpt_weak_property) __cpt_weak CPTPlot *dataPlot;
16+
@property (nonatomic, readwrite) CPTPlot *dataPlot;
1717
@property (nonatomic, readwrite) double cachedStep;
1818
@property (nonatomic, readwrite) NSUInteger dataCount;
1919
@property (nonatomic, readwrite) NSUInteger cachedCount;
@@ -44,7 +44,7 @@ @implementation CPTFunctionDataSource
4444
**/
4545
@synthesize dataSourceBlock;
4646

47-
/** @property __cpt_weak CPTPlot *dataPlot
47+
/** @property CPTPlot *dataPlot
4848
* @brief The plot that will display the function values. Must be an instance of CPTScatterPlot.
4949
**/
5050
@synthesize dataPlot;
@@ -162,8 +162,7 @@ -(void)dealloc
162162
{
163163
[[NSNotificationCenter defaultCenter] removeObserver:self];
164164

165-
CPTPlot *plot = dataPlot;
166-
[plot removeObserver:self forKeyPath:@"plotSpace" context:CPTFunctionDataSourceKVOContext];
165+
[dataPlot removeObserver:self forKeyPath:@"plotSpace" context:CPTFunctionDataSourceKVOContext];
167166
}
168167

169168
/// @endcond

0 commit comments

Comments
 (0)