Skip to content

Commit a3b5f22

Browse files
committed
Swift: do not use C casts
1 parent 44c26be commit a3b5f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/xcode-autobuilder/XcodeProjectParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static CFDictionaryRef xcodeProjectObjects(const std::string& xcodeProject) {
133133
}
134134
std::ifstream ifs(pbxproj, std::ios::in);
135135
std::string content((std::istreambuf_iterator<char>(ifs)), (std::istreambuf_iterator<char>()));
136-
auto data = CFDataCreate(allocator, (UInt8*)content.data(), content.size());
136+
auto data = CFDataCreate(allocator, reinterpret_cast<UInt8*>(content.data()), content.size());
137137
CFErrorRef error = nullptr;
138138
auto plist = CFPropertyListCreateWithData(allocator, data, 0, nullptr, &error);
139139
if (error) {

0 commit comments

Comments
 (0)