Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Fix compiler warnings (mac)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewVebster committed Dec 22, 2020
1 parent dbf2491 commit 163c310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ui/osx/TogglDesktop/App/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -1586,8 +1586,8 @@ void on_timeline(const bool_t open,
const char_t *date,
TogglTimelineChunkView *first,
TogglTimeEntryView *first_entry,
long start_day,
long end_day)
const uint64_t start_day,
const uint64_t end_day)
{
TimelineDisplayCommand *cmd =
[[TimelineDisplayCommand alloc] initWithOpen:open
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ extension EditorViewController {
tagInputContainerView.borderColor = borderColor

// Add tag token if need
if let tagNames = timeEntry.tags as? [String] {
if let tagNames = timeEntry.tags {
let tags = tagNames.map { Tag(name: $0) }

// Update selected tags
Expand Down Expand Up @@ -630,7 +630,7 @@ extension EditorViewController: TagTokenViewDelegate {
func tagTokenShouldDelete(with tag: Tag, sender: TagTokenView) {
guard !tag.isMoreTag && !tag.isEmptyTag else { return }
sender.removeFromSuperview()
if let tags = timeEntry.tags as? [String] {
if let tags = timeEntry.tags {
let remainingTags = tags.compactMap { (tagName) -> String? in
if tagName == tag.name {
return nil
Expand Down

0 comments on commit 163c310

Please sign in to comment.