mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Use #pragma once instead of include guards
This commit is contained in:
@@ -28,8 +28,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef HTTP_CONNECTION_H
|
||||
#define HTTP_CONNECTION_H
|
||||
#pragma once
|
||||
|
||||
#include <QElapsedTimer>
|
||||
#include <QObject>
|
||||
@@ -66,5 +65,3 @@ namespace Http
|
||||
QElapsedTimer m_idleTimer;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // HTTP_CONNECTION_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef HTTP_IREQUESTHANDLER_H
|
||||
#define HTTP_IREQUESTHANDLER_H
|
||||
#pragma once
|
||||
|
||||
namespace Http
|
||||
{
|
||||
@@ -42,5 +41,3 @@ namespace Http
|
||||
virtual Response processRequest(const Request &request, const Environment &env) = 0;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // HTTP_IREQUESTHANDLER_H
|
||||
|
||||
@@ -28,8 +28,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef HTTP_REQUESTPARSER_H
|
||||
#define HTTP_REQUESTPARSER_H
|
||||
#pragma once
|
||||
|
||||
#include "types.h"
|
||||
|
||||
@@ -70,5 +69,3 @@ namespace Http
|
||||
Request m_request;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // HTTP_REQUESTPARSER_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef HTTP_RESPONSEBUILDER_H
|
||||
#define HTTP_RESPONSEBUILDER_H
|
||||
#pragma once
|
||||
|
||||
#include "types.h"
|
||||
|
||||
@@ -50,5 +49,3 @@ namespace Http
|
||||
Response m_response;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // HTTP_RESPONSEBUILDER_H
|
||||
|
||||
@@ -28,8 +28,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef HTTP_RESPONSEGENERATOR_H
|
||||
#define HTTP_RESPONSEGENERATOR_H
|
||||
#pragma once
|
||||
|
||||
class QByteArray;
|
||||
class QString;
|
||||
@@ -42,5 +41,3 @@ namespace Http
|
||||
QString httpDate();
|
||||
void compressContent(Response &response);
|
||||
}
|
||||
|
||||
#endif // HTTP_RESPONSEGENERATOR_H
|
||||
|
||||
@@ -28,8 +28,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef HTTP_SERVER_H
|
||||
#define HTTP_SERVER_H
|
||||
#pragma once
|
||||
|
||||
#include <QSet>
|
||||
#include <QSslCertificate>
|
||||
@@ -67,5 +66,3 @@ namespace Http
|
||||
QSslKey m_key;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // HTTP_SERVER_H
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef HTTP_TYPES_H
|
||||
#define HTTP_TYPES_H
|
||||
#pragma once
|
||||
|
||||
#include <QHostAddress>
|
||||
#include <QString>
|
||||
@@ -127,5 +126,3 @@ namespace Http
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif // HTTP_TYPES_H
|
||||
|
||||
Reference in New Issue
Block a user