Skip to content

Commit

Permalink
fix windows build, another clang-tidy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zjeffer committed Feb 16, 2025
1 parent e73950d commit 347c7dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/framelesswindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ bool CFramelessWindow::nativeEvent(const QByteArray &eventType, void *message, q
return true;
}
case WM_NCHITTEST: {
*result = nullptr;
*result = 0;

const LONG border_width = m_borderWidth;
RECT winrect;
Expand Down
4 changes: 2 additions & 2 deletions src/updaterwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ void UpdaterWindow::openDownloadFolder(const QString &file)
QMessageBox::Ok);

/* Get the full path list of the downloaded file */
QString native_path = QDir::toNativeSeparators(QDir(file).absolutePath());
QStringList directories = native_path.split(QDir::separator());
QString nativePath = QDir::toNativeSeparators(QDir(file).absolutePath());
QStringList directories = nativePath.split(QDir::separator());

/* Remove file name from list to get the folder of the update file */
directories.removeLast();
Expand Down

0 comments on commit 347c7dd

Please sign in to comment.