From 3bb693168740242e9f115b93114364cb4a608cf4 Mon Sep 17 00:00:00 2001 From: Xuan Liu Date: Wed, 31 Aug 2016 10:49:09 +0800 Subject: [PATCH] fix more copyWithZone(_ zone: NSZone?) -> AnyObject errors --- ChartsRealm/Classes/Data/RealmBarDataSet.swift | 2 +- ChartsRealm/Classes/Data/RealmBubbleDataSet.swift | 2 +- ChartsRealm/Classes/Data/RealmLineDataSet.swift | 2 +- ChartsRealm/Classes/Data/RealmLineRadarDataSet.swift | 2 +- .../Classes/Data/RealmLineScatterCandleRadarDataSet.swift | 2 +- ChartsRealm/Classes/Data/RealmScatterDataSet.swift | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ChartsRealm/Classes/Data/RealmBarDataSet.swift b/ChartsRealm/Classes/Data/RealmBarDataSet.swift index 8b1eea0764..c2040a8d30 100644 --- a/ChartsRealm/Classes/Data/RealmBarDataSet.swift +++ b/ChartsRealm/Classes/Data/RealmBarDataSet.swift @@ -247,7 +247,7 @@ open class RealmBarDataSet: RealmBarLineScatterCandleBubbleDataSet, IBarChartDat // MARK: - NSCopying - open override func copyWithZone(_ zone: NSZone?) -> AnyObject + open override func copyWithZone(_ zone: NSZone?) -> Any { let copy = super.copyWithZone(zone) as! RealmBarDataSet copy._stackSize = _stackSize diff --git a/ChartsRealm/Classes/Data/RealmBubbleDataSet.swift b/ChartsRealm/Classes/Data/RealmBubbleDataSet.swift index 8d9fed1587..e3c6ab59ab 100644 --- a/ChartsRealm/Classes/Data/RealmBubbleDataSet.swift +++ b/ChartsRealm/Classes/Data/RealmBubbleDataSet.swift @@ -174,7 +174,7 @@ open class RealmBubbleDataSet: RealmBarLineScatterCandleBubbleDataSet, IBubbleCh // MARK: - NSCopying - open override func copyWithZone(_ zone: NSZone?) -> AnyObject + open override func copyWithZone(_ zone: NSZone?) -> Any { let copy = super.copyWithZone(zone) as! RealmBubbleDataSet copy._xMin = _xMin diff --git a/ChartsRealm/Classes/Data/RealmLineDataSet.swift b/ChartsRealm/Classes/Data/RealmLineDataSet.swift index 6121c9ebcf..a2b0fd843a 100644 --- a/ChartsRealm/Classes/Data/RealmLineDataSet.swift +++ b/ChartsRealm/Classes/Data/RealmLineDataSet.swift @@ -177,7 +177,7 @@ open class RealmLineDataSet: RealmLineRadarDataSet, ILineChartDataSet // MARK: NSCopying - open override func copyWithZone(_ zone: NSZone?) -> AnyObject + open override func copyWithZone(_ zone: NSZone?) -> Any { let copy = super.copyWithZone(zone) as! RealmLineDataSet copy.circleRadius = circleRadius diff --git a/ChartsRealm/Classes/Data/RealmLineRadarDataSet.swift b/ChartsRealm/Classes/Data/RealmLineRadarDataSet.swift index 1249b85251..cc2729f2bb 100644 --- a/ChartsRealm/Classes/Data/RealmLineRadarDataSet.swift +++ b/ChartsRealm/Classes/Data/RealmLineRadarDataSet.swift @@ -84,7 +84,7 @@ open class RealmLineRadarDataSet: RealmLineScatterCandleRadarDataSet, ILineRadar // MARK: NSCopying - open override func copyWithZone(_ zone: NSZone?) -> AnyObject + open override func copyWithZone(_ zone: NSZone?) -> Any { let copy = super.copyWithZone(zone) as! RealmLineRadarDataSet copy.fillColor = fillColor diff --git a/ChartsRealm/Classes/Data/RealmLineScatterCandleRadarDataSet.swift b/ChartsRealm/Classes/Data/RealmLineScatterCandleRadarDataSet.swift index f5c2e38b55..7bbda69619 100644 --- a/ChartsRealm/Classes/Data/RealmLineScatterCandleRadarDataSet.swift +++ b/ChartsRealm/Classes/Data/RealmLineScatterCandleRadarDataSet.swift @@ -46,7 +46,7 @@ open class RealmLineScatterCandleRadarDataSet: RealmBarLineScatterCandleBubbleDa // MARK: NSCopying - open override func copyWithZone(_ zone: NSZone?) -> AnyObject + open override func copyWithZone(_ zone: NSZone?) -> Any { let copy = super.copyWithZone(zone) as! RealmLineScatterCandleRadarDataSet copy.drawHorizontalHighlightIndicatorEnabled = drawHorizontalHighlightIndicatorEnabled diff --git a/ChartsRealm/Classes/Data/RealmScatterDataSet.swift b/ChartsRealm/Classes/Data/RealmScatterDataSet.swift index 7f8fa55287..6984b4af7c 100644 --- a/ChartsRealm/Classes/Data/RealmScatterDataSet.swift +++ b/ChartsRealm/Classes/Data/RealmScatterDataSet.swift @@ -47,7 +47,7 @@ open class RealmScatterDataSet: RealmLineScatterCandleRadarDataSet, IScatterChar // MARK: NSCopying - open override func copyWithZone(_ zone: NSZone?) -> AnyObject + open override func copyWithZone(_ zone: NSZone?) -> Any { let copy = super.copyWithZone(zone) as! RealmScatterDataSet copy.scatterShapeSize = scatterShapeSize