mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
Use the new swiftString method to get UTF-8 String instead of UTF-16 String.
This commit is contained in:
1 parent
8a86696b60
commit
bca1449a22
11 files changed
+58
-57
No files matched your search
@@ -101,8 +101,8 @@ struct SyncStatusTable {
|
||||
private extension SyncStatusTable {
|
||||
|
||||
static func statusWithRow(_ row: FMResultSet) -> SyncStatus? {
|
||||
guard let articleID = row.string(forColumn: DatabaseKey.articleID),
|
||||
let rawKey = row.string(forColumn: DatabaseKey.key),
|
||||
guard let articleID = row.swiftString(forColumn: DatabaseKey.articleID),
|
||||
let rawKey = row.swiftString(forColumn: DatabaseKey.key),
|
||||
let key = SyncStatus.Key(rawValue: rawKey) else {
|
||||
return nil
|
||||
}
|
||||
@@ -119,7 +119,7 @@ private extension SyncStatusTable {
|
||||
return nil
|
||||
}
|
||||
|
||||
let articleIDs = resultSet.mapToSet { $0.string(forColumnIndex: 0) }
|
||||
let articleIDs = resultSet.mapToSet { $0.swiftString(forColumnIndex: 0) }
|
||||
return articleIDs
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user