Fix deprecated APIs

This commit is contained in:
Robert Payne 2016-05-19 17:02:15 +12:00
parent 1071951dc9
commit f785886d3a
1 changed files with 3 additions and 3 deletions

View File

@ -67,15 +67,15 @@ public class ConstraintMakerRelatable {
return editable return editable
} }
public func equalTo(other: ConstraintRelatableTarget, _ file: String = __FILE__, _ line: UInt = __LINE__) -> ConstraintMakerEditable { public func equalTo(other: ConstraintRelatableTarget, _ file: String = #file, _ line: UInt = #line) -> ConstraintMakerEditable {
return self.relatedTo(other, relation: .Equal, file: file, line: line) return self.relatedTo(other, relation: .Equal, file: file, line: line)
} }
public func lessThanOrEqualTo(other: ConstraintRelatableTarget, _ file: String = __FILE__, _ line: UInt = __LINE__) -> ConstraintMakerEditable { public func lessThanOrEqualTo(other: ConstraintRelatableTarget, _ file: String = #file, _ line: UInt = #line) -> ConstraintMakerEditable {
return self.relatedTo(other, relation: .LessThanOrEqual, file: file, line: line) return self.relatedTo(other, relation: .LessThanOrEqual, file: file, line: line)
} }
public func greaterThanOrEqualTo(other: ConstraintRelatableTarget, _ file: String = __FILE__, line: UInt = __LINE__) -> ConstraintMakerEditable { public func greaterThanOrEqualTo(other: ConstraintRelatableTarget, _ file: String = #file, line: UInt = #line) -> ConstraintMakerEditable {
return self.relatedTo(other, relation: .GreaterThanOrEqual, file: file, line: line) return self.relatedTo(other, relation: .GreaterThanOrEqual, file: file, line: line)
} }