Use #pragma once instead of include guards

This commit is contained in:
FranciscoPombal
2020-12-10 17:56:37 +00:00
committed by sledgehammer999
parent 0b42425db5
commit fdc64d9b38
122 changed files with 122 additions and 488 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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