Convert to pragma once

This commit is contained in:
Jack Andersen 2018-10-06 17:41:18 -10:00
parent be35f67bc9
commit e82da43331
14 changed files with 14 additions and 42 deletions

View File

@ -1,5 +1,4 @@
#ifndef GUI_COMMON_HPP
#define GUI_COMMON_HPP
#pragma once
#include <QString>
#include <QMetaType>
@ -77,4 +76,3 @@ Q_DECLARE_METATYPE(URDEVersion);
void InitializePlatform();
#endif // GUI_COMMON_HPP

View File

@ -1,5 +1,4 @@
#ifndef GUI_DOWNLOADMANAGER_HPP
#define GUI_DOWNLOADMANAGER_HPP
#pragma once
#include <QObject>
#include <QtNetwork>
@ -71,4 +70,3 @@ public slots:
};
#endif // GUI_DOWNLOADMANAGER_HPP

View File

@ -1,5 +1,4 @@
#ifndef GUI_ERRORLABEL_HPP
#define GUI_ERRORLABEL_HPP
#pragma once
#include <QLabel>
@ -19,4 +18,3 @@ public:
}
};
#endif // GUI_ERRORLABEL_HPP

View File

@ -1,5 +1,4 @@
#ifndef GUI_ESCAPESEQUENCEPARSER_HPP
#define GUI_ESCAPESEQUENCEPARSER_HPP
#pragma once
#include <QString>
#include <QTextCharFormat>
@ -12,4 +11,3 @@ void ReturnInsert(QTextCursor& cur, const QString& text);
void ReturnInsert(QTextCursor& cur, const QString& text, const QTextCharFormat& format);
#endif // GUI_ESCAPESEQUENCEPARSER_HPP

View File

@ -1,5 +1,4 @@
#ifndef GUI_EXTRACTZIP_HPP
#define GUI_EXTRACTZIP_HPP
#pragma once
class QStringList;
class QuaZip;
@ -13,4 +12,3 @@ public:
static bool extractDir(QuaZip& zip, QString dir);
};
#endif // GUI_EXTRACTZIP_HPP

View File

@ -1,5 +1,4 @@
#ifndef FILEDIRDIALOG_HPP
#define FILEDIRDIALOG_HPP
#pragma once
#include <QFileDialog>
@ -10,4 +9,3 @@ public:
FileDirDialog(QWidget* parent = nullptr) : QFileDialog(parent) { setFileMode(QFileDialog::Directory); }
};
#endif // FILEDIRDIALOG_HPP

View File

@ -1,5 +1,4 @@
#ifndef FINDBLENDER_HPP
#define FINDBLENDER_HPP
#pragma once
#include "hecl/hecl.hpp"
@ -10,4 +9,3 @@ hecl::SystemString FindBlender(int& major, int& minor);
}
#endif // FINDBLENDER_HPP

View File

@ -1,5 +1,4 @@
#ifndef GUI_LAUNCHMENU_HPP
#define GUI_LAUNCHMENU_HPP
#pragma once
#include <QMenu>
namespace hecl { struct CVarCommons; }
@ -34,4 +33,3 @@ public slots:
void developerModeTriggered();
};
#endif // GUI_LAUNCHMENU_HPP

View File

@ -1,6 +1,4 @@
#ifndef GUI_MACOSSYSTEMVERSION_HPP
#define GUI_MACOSSYSTEMVERSION_HPP
#pragma once
void GetMacOSSystemVersion(int& major, int& minor, int& patch);
#endif // GUI_MACOSSYSTEMVERSION_HPP

View File

@ -1,5 +1,4 @@
#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#pragma once
#include <QMainWindow>
#include <QProcess>
@ -65,4 +64,3 @@ private:
bool isPackageComplete() const;
};
#endif // MAINWINDOW_HPP

View File

@ -1,5 +1,4 @@
#ifndef GUI_SYSREQTABLEVIEW_HPP
#define GUI_SYSREQTABLEVIEW_HPP
#pragma once
#include <QTableView>
#include "VectorISATableView.hpp"
@ -57,4 +56,3 @@ public:
void updateFreeDiskSpace(const QString& path) { m_model.updateFreeDiskSpace(path); }
};
#endif // GUI_SYSREQTABLEVIEW_HPP

View File

@ -1,5 +1,4 @@
#ifndef GUI_VECTORISATABLEMODEL_HPP
#define GUI_VECTORISATABLEMODEL_HPP
#pragma once
#include <QTableView>
#include "zeus/Math.hpp"
@ -14,4 +13,3 @@ public:
int rowCount(const QModelIndex& parent = QModelIndex()) const { return 1; }
};
#endif // GUI_VECTORISATABLEMODEL_HPP

View File

@ -1,5 +1,4 @@
#ifndef GUI_VECTORISATABLEMODELINTEL_HPP
#define GUI_VECTORISATABLEMODELINTEL_HPP
#pragma once
#include "VectorISATableModel.hpp"
@ -107,4 +106,3 @@ public:
}
};
#endif // GUI_VECTORISATABLEMODELINTEL_HPP

View File

@ -1,5 +1,4 @@
#ifndef GUI_VECTORISATABLEVIEW_HPP
#define GUI_VECTORISATABLEVIEW_HPP
#pragma once
#include <QTableView>
#include "Common.hpp"
@ -25,4 +24,3 @@ public:
bool willRun(VectorISA visa) const { return m_model.willRun(visa); }
};
#endif // GUI_VECTORISATABLEVIEW_HPP