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 DNSUPDATER_H
#define DNSUPDATER_H
#pragma once
#include <QDateTime>
#include <QHostAddress>
@@ -84,5 +83,3 @@ namespace Net
QString m_password;
};
}
#endif // DNSUPDATER_H

View File

@@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef NET_DOWNLOADMANAGER_H
#define NET_DOWNLOADMANAGER_H
#pragma once
#include <QHash>
#include <QNetworkAccessManager>
@@ -159,5 +158,3 @@ namespace Net
connect(handler, &DownloadHandler::finished, context, slot);
}
}
#endif // NET_DOWNLOADMANAGER_H

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef GEOIPDATABASE_H
#define GEOIPDATABASE_H
#pragma once
#include <QCoreApplication>
#include <QtGlobal>
@@ -100,5 +99,3 @@ private:
quint32 m_size;
uchar *m_data;
};
#endif // GEOIPDATABASE_H

View File

@@ -27,8 +27,7 @@
* exception statement from your version.
*/
#ifndef NET_GEOIPMANAGER_H
#define NET_GEOIPMANAGER_H
#pragma once
#include <QObject>
@@ -73,5 +72,3 @@ namespace Net
static GeoIPManager *m_instance;
};
}
#endif // NET_GEOIPMANAGER_H

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef NET_PORTFORWARDER_H
#define NET_PORTFORWARDER_H
#pragma once
#include <QObject>
@@ -53,5 +52,3 @@ namespace Net
static PortForwarder *m_instance;
};
}
#endif // NET_PORTFORWARDER_H

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef NET_PROXYCONFIGURATIONMANAGER_H
#define NET_PROXYCONFIGURATIONMANAGER_H
#pragma once
#include <QObject>
@@ -85,5 +84,3 @@ namespace Net
bool m_isProxyOnlyForTorrents;
};
}
#endif // NET_PROXYCONFIGURATIONMANAGER_H

View File

@@ -26,8 +26,7 @@
* exception statement from your version.
*/
#ifndef NET_REVERSERESOLUTION_H
#define NET_REVERSERESOLUTION_H
#pragma once
#include <QCache>
#include <QObject>
@@ -60,5 +59,3 @@ namespace Net
QCache<QHostAddress, QString> m_cache; // <IP, HostName>
};
}
#endif // NET_REVERSERESOLUTION_H

View File

@@ -30,8 +30,7 @@
* This code is based on QxtSmtp from libqxt (http://libqxt.org)
*/
#ifndef SMTP_H
#define SMTP_H
#pragma once
#include <QAbstractSocket>
#include <QByteArray>
@@ -119,5 +118,3 @@ namespace Net
QString m_password;
};
}
#endif // SMTP_H