Use the new swiftString method to get UTF-8 String instead of UTF-16 String.

This commit is contained in:
Brent Simmons committed 2026-04-26 10:58:46 -07:00
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
}
}