Skip to content

Commit

Permalink
Merge pull request #1379 from liuxuan30/Swift-3.0
Browse files Browse the repository at this point in the history
fix bridgedObjCGetStringArray warning and more copyWithZone(_ zone: NSZone?) -> AnyObject errors
  • Loading branch information
liuxuan30 authored Aug 31, 2016
2 parents 1b22f8d + 3bb6931 commit ce4e180
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Charts/Classes/Utils/ChartUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ open class ChartUtils
}
else
{
newArray.append(val as! NSObject)
newArray.append(val! as NSObject)
}
}
return newArray
Expand Down
2 changes: 1 addition & 1 deletion ChartsRealm/Classes/Data/RealmBarDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ChartsRealm/Classes/Data/RealmBubbleDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ChartsRealm/Classes/Data/RealmLineDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ChartsRealm/Classes/Data/RealmLineRadarDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ChartsRealm/Classes/Data/RealmScatterDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce4e180

Please sign in to comment.