Skip to content

Commit 9e05159

Browse files
committed
Added missing nullability annotations in CPTNumericData.
1 parent 8b5b954 commit 9e05159

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎framework/Source/CPTNumericData.m‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ -(NSNumber *)sampleValueAtIndex:(NSUInteger)idx, ...
725725
* @param sample The zero-based index into the sample array. The array is treated as if it only has one dimension.
726726
* @return A pointer to the sample or @NULL if the sample index is out of bounds.
727727
**/
728-
-(const void *)samplePointer:(NSUInteger)sample
728+
-(nullable const void *)samplePointer:(NSUInteger)sample
729729
{
730730
if ( sample < self.numberOfSamples ) {
731731
return (const void *)( (const char *)self.bytes + sample * self.sampleBytes );
@@ -740,7 +740,7 @@ -(const void *)samplePointer:(NSUInteger)sample
740740
* (including @par{index}) should match the @ref numberOfDimensions.
741741
* @return A pointer to the sample or @NULL if any of the sample indices are out of bounds.
742742
**/
743-
-(const void *)samplePointerAtIndex:(NSUInteger)idx, ...
743+
-(nullable const void *)samplePointerAtIndex:(NSUInteger)idx, ...
744744
{
745745
NSUInteger newIndex;
746746

0 commit comments

Comments
 (0)