Swift: do not use C casts

This commit is contained in:
Alex Denisov
2022-10-18 10:01:02 +02:00
parent 44c26be2c4
commit a3b5f2239d

View File

@@ -133,7 +133,7 @@ static CFDictionaryRef xcodeProjectObjects(const std::string& xcodeProject) {
}
std::ifstream ifs(pbxproj, std::ios::in);
std::string content((std::istreambuf_iterator<char>(ifs)), (std::istreambuf_iterator<char>()));
auto data = CFDataCreate(allocator, (UInt8*)content.data(), content.size());
auto data = CFDataCreate(allocator, reinterpret_cast<UInt8*>(content.data()), content.size());
CFErrorRef error = nullptr;
auto plist = CFPropertyListCreateWithData(allocator, data, 0, nullptr, &error);
if (error) {