Replace C-style cast with reinterpret_cast

This commit is contained in:
Jonas Kvinge 2021-08-09 23:32:09 +02:00
parent 6ede400f3a
commit 7d61d8e646
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ void MoodbarLoader::RequestFinished(MoodbarPipeline *request, const QUrl &url) {
mood_file.close();
#ifdef Q_OS_WIN32
if (!SetFileAttributes((LPCTSTR)mood_filename.utf16(), FILE_ATTRIBUTE_HIDDEN)) {
if (!SetFileAttributes(reinterpret_cast<LPCTSTR>(mood_filename.utf16()), FILE_ATTRIBUTE_HIDDEN)) {
qLog(Warning) << "Error setting hidden attribute for file" << mood_filename;
}
#endif