mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
Use #pragma once instead of include guards
This commit is contained in:
committed by
sledgehammer999
parent
0b42425db5
commit
fdc64d9b38
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef UTILS_FS_H
|
||||
#define UTILS_FS_H
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Utility functions related to file system.
|
||||
@@ -79,5 +78,3 @@ namespace Utils
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
#endif // UTILS_FS_H
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef UTILS_GZIP_H
|
||||
#define UTILS_GZIP_H
|
||||
#pragma once
|
||||
|
||||
class QByteArray;
|
||||
|
||||
@@ -40,5 +39,3 @@ namespace Utils
|
||||
QByteArray decompress(const QByteArray &data, bool *ok = nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // UTILS_GZIP_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef UTILS_MISC_H
|
||||
#define UTILS_MISC_H
|
||||
#pragma once
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
@@ -108,5 +107,3 @@ namespace Utils
|
||||
#endif // Q_OS_WIN
|
||||
}
|
||||
}
|
||||
|
||||
#endif // UTILS_MISC_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef BASE_UTILS_NET_H
|
||||
#define BASE_UTILS_NET_H
|
||||
#pragma once
|
||||
|
||||
#include <QHostAddress>
|
||||
#include <QtContainerFwd>
|
||||
@@ -57,5 +56,3 @@ namespace Utils
|
||||
bool isSSLKeyValid(const QByteArray &data);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BASE_UTILS_NET_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef UTILS_RANDOM_H
|
||||
#define UTILS_RANDOM_H
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <limits>
|
||||
@@ -39,5 +38,3 @@ namespace Utils
|
||||
uint32_t rand(uint32_t min = 0, uint32_t max = std::numeric_limits<uint32_t>::max());
|
||||
}
|
||||
}
|
||||
|
||||
#endif // UTILS_FS_H
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef UTILS_STRING_H
|
||||
#define UTILS_STRING_H
|
||||
#pragma once
|
||||
|
||||
#include <QChar>
|
||||
#include <QString>
|
||||
@@ -74,5 +73,3 @@ namespace Utils
|
||||
QString join(const QVector<QStringRef> &strings, const QString &separator);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // UTILS_STRING_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef QBITTORRENT_UTILS_VERSION_H
|
||||
#define QBITTORRENT_UTILS_VERSION_H
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <stdexcept>
|
||||
@@ -212,5 +211,3 @@ namespace Utils
|
||||
return !(left < right);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // QBITTORRENT_UTILS_VERSION_H
|
||||
|
||||
Reference in New Issue
Block a user