File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ private class UnitConverterReciprocal : UnitConverter, NSSecureCoding {
106106 return reciprocal / baseUnitValue
107107 }
108108
109- private required convenience init ? ( coder aDecoder: NSCoder ) {
109+ fileprivate required convenience init ? ( coder aDecoder: NSCoder ) {
110110 if aDecoder. allowsKeyedCoding {
111111 let reciprocal = aDecoder. decodeDouble ( forKey: " NS.reciprocal " )
112112 self . init ( reciprocal: reciprocal)
@@ -118,15 +118,15 @@ private class UnitConverterReciprocal : UnitConverter, NSSecureCoding {
118118 }
119119 }
120120
121- private func encode( with aCoder: NSCoder ) {
121+ fileprivate func encode( with aCoder: NSCoder ) {
122122 if aCoder. allowsKeyedCoding {
123123 aCoder. encode ( self . reciprocal, forKey: " NS.reciprocal " )
124124 } else {
125125 aCoder. encode ( NSNumber ( value: self . reciprocal) )
126126 }
127127 }
128128
129- private static func supportsSecureCoding( ) -> Bool { return true }
129+ fileprivate static func supportsSecureCoding( ) -> Bool { return true }
130130}
131131
132132/*
You can’t perform that action at this time.
0 commit comments