Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Swift 2 - Xcode7b6 compatibility #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
.extend to .appendContentsOf
mpclarkson committed Aug 28, 2015
commit cea7ea6f3f63fa6fcbd0f1e974c88f4e52ae373d
4 changes: 2 additions & 2 deletions IMGTreeTableView/IMGTreeTableController.swift
Original file line number Diff line number Diff line change
@@ -413,7 +413,7 @@ public class IMGTreeTableController: NSObject, UITableViewDataSource{
let indexPath = NSIndexPath(forRow: rowIndex, inSection: 0)
addedIndices.append(indexPath)
}
addedIndices.extend(node.visibleIndicesForTraversal() as [NSIndexPath])
addedIndices.appendContentsOf(node.visibleIndicesForTraversal() as [NSIndexPath])
}

var deletedIndices: [NSIndexPath] = []
@@ -422,7 +422,7 @@ public class IMGTreeTableController: NSObject, UITableViewDataSource{
let indexPath = NSIndexPath(forRow: rowIndex, inSection: 0)
deletedIndices.append(indexPath)
}
deletedIndices.extend(node.previousVisibleChildren! as [NSIndexPath])
deletedIndices.appendContentsOf(node.previousVisibleChildren! as [NSIndexPath])
}

if !disableAnimation {