Skip to content

Commit 44f6f52

Browse files
committed
DatePicker: silence a warning (NFC)
Silence a warning about an unmutated `var` by changing it to `let`.
1 parent c7bb97d commit 44f6f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftWin32/Views and Controls/DatePicker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class DatePicker: Control {
4747
public func setDate(_ date: Date, animated: Bool) {
4848
assert(!animated, "not yet implemented")
4949

50-
var ftSystemTime: FILETIME =
50+
let ftSystemTime: FILETIME =
5151
FILETIME(timeIntervalSince1970: date.timeIntervalSince1970)
5252
let stSystemTime: SYSTEMTIME = SYSTEMTIME(ftSystemTime)
5353

0 commit comments

Comments
 (0)