Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some warnings #703

Merged
merged 1 commit into from
Jun 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/platform/iOS/Common_iOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ extension UIScreen {
}

extension UIBezierPath {
var usesEvenOddFillRule: Bool {
var mUsesEvenOddFillRule: Bool {
return self.usesEvenOddFillRule
}
}
Expand Down
2 changes: 1 addition & 1 deletion Source/platform/macOS/Common_macOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ extension NSWindow {
}

extension NSBezierPath {
var usesEvenOddFillRule: Bool {
var mUsesEvenOddFillRule: Bool {
return self.windingRule == .evenOdd
}
}
Expand Down
6 changes: 3 additions & 3 deletions Source/utils/CGMappings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public extension Node {
extension MBezierPath {

public func toMacaw() -> Path {
let fillRule: FillRule = self.usesEvenOddFillRule ? .evenodd : .nonzero
let fillRule: FillRule = self.mUsesEvenOddFillRule ? .evenodd : .nonzero
return self.cgPath.toMacaw(fillRule: fillRule)
}

Expand All @@ -178,7 +178,7 @@ extension CGPath {
}

var segments = [PathSegment]()
self.forEach(body: { (element: CGPathElement) in
self.forEach { (element: CGPathElement) in

let segment: PathSegment
switch element.type {
Expand All @@ -196,7 +196,7 @@ extension CGPath {
fatalError("Unknown element type: \(element.type)")
}
segments.append(segment)
})
}

return Path(segments: segments, fillRule: .nonzero)
}
Expand Down