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 #pragma once
#define GUI_COMMON_HPP
#include <QString> #include <QString>
#include <QMetaType> #include <QMetaType>
@ -77,4 +76,3 @@ Q_DECLARE_METATYPE(URDEVersion);
void InitializePlatform(); void InitializePlatform();
#endif // GUI_COMMON_HPP

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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