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

4
src/app/application.cpp

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

2
src/app/qtlocalpeer/qtlocalpeer.cpp

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

2
src/base/bittorrent/sessionimpl.cpp

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

2
src/base/utils/fs.cpp

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

2
src/base/utils/misc.cpp

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

2
src/base/utils/misc.h

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

4
src/base/utils/random.cpp

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

4
src/gui/mainwindow.cpp

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

4
src/gui/programupdater.cpp

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

4
src/gui/torrentcontentmodel.cpp

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

6
src/gui/utils.cpp

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

Loading…
Cancel
Save