Browse Source

Convert Windows header names to lowercase

PR #19465.
adaptive-webui-19844
Victor Chernyakin 1 year ago committed by GitHub
parent
commit
f3f4610ba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CODING_GUIDELINES.md
  2. 4
      src/app/application.cpp
  3. 2
      src/app/qtlocalpeer/qtlocalpeer.cpp
  4. 2
      src/base/bittorrent/sessionimpl.cpp
  5. 2
      src/base/utils/fs.cpp
  6. 2
      src/base/utils/misc.cpp
  7. 2
      src/base/utils/misc.h
  8. 4
      src/base/utils/random.cpp
  9. 4
      src/gui/mainwindow.cpp
  10. 4
      src/gui/programupdater.cpp
  11. 4
      src/gui/torrentcontentmodel.cpp
  12. 6
      src/gui/utils.cpp

2
CODING_GUIDELINES.md

@ -342,7 +342,7 @@ Example:
// System headers // System headers
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <Windows.h> #include <windows.h>
#endif #endif
// Boost library headers // Boost library headers

4
src/app/application.cpp

@ -37,8 +37,8 @@
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <memory> #include <memory>
#include <Windows.h> #include <windows.h>
#include <Shellapi.h> #include <shellapi.h>
#elif defined(Q_OS_UNIX) #elif defined(Q_OS_UNIX)
#include <sys/resource.h> #include <sys/resource.h>
#endif #endif

2
src/app/qtlocalpeer/qtlocalpeer.cpp

@ -71,7 +71,7 @@
#include <QtSystemDetection> #include <QtSystemDetection>
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)
#include <Windows.h> #include <windows.h>
#endif #endif
#include <QDataStream> #include <QDataStream>

2
src/base/bittorrent/sessionimpl.cpp

@ -37,7 +37,7 @@
#include <string> #include <string>
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <Windows.h> #include <windows.h>
#include <wincrypt.h> #include <wincrypt.h>
#include <iphlpapi.h> #include <iphlpapi.h>
#endif #endif

2
src/base/utils/fs.cpp

@ -41,7 +41,7 @@
#include <sys/types.h> #include <sys/types.h>
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)
#include <Windows.h> #include <windows.h>
#elif defined(Q_OS_MACOS) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD) #elif defined(Q_OS_MACOS) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
#include <sys/param.h> #include <sys/param.h>
#include <sys/mount.h> #include <sys/mount.h>

2
src/base/utils/misc.cpp

@ -35,7 +35,7 @@
#include <windows.h> #include <windows.h>
#include <powrprof.h> #include <powrprof.h>
#include <Shlobj.h> #include <shlobj.h>
#else #else
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>

2
src/base/utils/misc.h

@ -31,7 +31,7 @@
#include <QtSystemDetection> #include <QtSystemDetection>
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <Windows.h> #include <windows.h>
#endif #endif
#include <QString> #include <QString>

4
src/base/utils/random.cpp

@ -33,8 +33,8 @@
#include <QtSystemDetection> #include <QtSystemDetection>
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <Windows.h> #include <windows.h>
#include <Ntsecapi.h> #include <ntsecapi.h>
#else // Q_OS_WIN #else // Q_OS_WIN
#include <cerrno> #include <cerrno>
#include <cstdio> #include <cstdio>

4
src/gui/mainwindow.cpp

@ -35,8 +35,8 @@
#include <chrono> #include <chrono>
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)
#include <Windows.h> #include <windows.h>
#include <versionhelpers.h> // must follow after Windows.h #include <versionhelpers.h> // must follow after windows.h
#endif #endif
#include <QAction> #include <QAction>

4
src/gui/programupdater.cpp

@ -32,8 +32,8 @@
#include <QtSystemDetection> #include <QtSystemDetection>
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)
#include <Windows.h> #include <windows.h>
#include <versionhelpers.h> // must follow after Windows.h #include <versionhelpers.h> // must follow after windows.h
#endif #endif
#include <QDebug> #include <QDebug>

4
src/gui/torrentcontentmodel.cpp

@ -38,8 +38,8 @@
#include <QScopeGuard> #include <QScopeGuard>
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)
#include <Windows.h> #include <windows.h>
#include <Shellapi.h> #include <shellapi.h>
#else #else
#include <QMimeDatabase> #include <QMimeDatabase>
#include <QMimeType> #include <QMimeType>

6
src/gui/utils.cpp

@ -31,9 +31,9 @@
#include <QtSystemDetection> #include <QtSystemDetection>
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <Objbase.h> #include <objbase.h>
#include <Shlobj.h> #include <shlobj.h>
#include <Shellapi.h> #include <shellapi.h>
#endif #endif
#include <QApplication> #include <QApplication>

Loading…
Cancel
Save