mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 13:48:05 -06:00
Use #pragma once instead of include guards
This commit is contained in:
committed by
sledgehammer999
parent
0b42425db5
commit
fdc64d9b38
@@ -28,8 +28,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef APP_OPTIONS_H
|
||||
#define APP_OPTIONS_H
|
||||
#pragma once
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
@@ -81,5 +80,3 @@ private:
|
||||
|
||||
QBtCommandLineParameters parseCommandLine(const QStringList &args);
|
||||
void displayUsage(const QString &prgName);
|
||||
|
||||
#endif // APP_OPTIONS_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef FILELOGGER_H
|
||||
#define FILELOGGER_H
|
||||
#pragma once
|
||||
|
||||
#include <QFile>
|
||||
#include <QObject>
|
||||
@@ -73,5 +72,3 @@ private:
|
||||
QFile m_logFile;
|
||||
QTimer m_flusher;
|
||||
};
|
||||
|
||||
#endif // FILELOGGER_H
|
||||
|
||||
@@ -66,8 +66,7 @@
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef QTLOCALPEER_H
|
||||
#define QTLOCALPEER_H
|
||||
#pragma once
|
||||
|
||||
#include "qtlockedfile.h"
|
||||
|
||||
@@ -99,5 +98,3 @@ protected:
|
||||
private:
|
||||
static const char* ack;
|
||||
};
|
||||
|
||||
#endif // QTLOCALPEER_H
|
||||
|
||||
@@ -66,8 +66,7 @@
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef QTLOCKEDFILE_H
|
||||
#define QTLOCKEDFILE_H
|
||||
#pragma once
|
||||
|
||||
#include <QFile>
|
||||
|
||||
@@ -112,5 +111,3 @@ namespace QtLP_Private
|
||||
LockMode m_lock_mode;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -18,8 +18,7 @@
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef STACKTRACE_WIN_H
|
||||
#define STACKTRACE_WIN_H
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
#include <dbghelp.h>
|
||||
@@ -355,5 +354,3 @@ const QString straceWin::getBacktrace()
|
||||
#pragma warning(pop)
|
||||
#pragma optimize("g", on)
|
||||
#endif
|
||||
|
||||
#endif // STACKTRACE_WIN_H
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef STACKTRACEDIALOG_H
|
||||
#define STACKTRACEDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
@@ -51,5 +50,3 @@ public:
|
||||
private:
|
||||
Ui::StacktraceDialog *m_ui;
|
||||
};
|
||||
|
||||
#endif // STACKTRACEDIALOG_H
|
||||
|
||||
Reference in New Issue
Block a user