build: use pragma once not ifndef def pattern for headers
This commit is contained in:
committed by
Chris Rizzitello
parent
e3ed711b98
commit
932ca44d75
@ -16,9 +16,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined(ACTION_H)
|
||||
|
||||
#define ACTION_H
|
||||
#pragma once
|
||||
|
||||
#include "KeySequence.h"
|
||||
|
||||
@ -100,5 +98,3 @@ private:
|
||||
typedef QList<Action> ActionList;
|
||||
|
||||
QTextStream &operator<<(QTextStream &outStream, const Action &action);
|
||||
|
||||
#endif
|
||||
|
||||
@ -16,9 +16,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined(ACTIONDIALOG_H)
|
||||
|
||||
#define ACTIONDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
@ -54,5 +52,3 @@ private:
|
||||
|
||||
QButtonGroup *m_pButtonGroupType;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -15,8 +15,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef ADDCLIENTDIALOG_H
|
||||
#define ADDCLIENTDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include "ui_AddClientDialogBase.h"
|
||||
|
||||
@ -57,5 +56,3 @@ private:
|
||||
QLabel *m_pLabelCenter;
|
||||
int m_AddResult;
|
||||
};
|
||||
|
||||
#endif // ADDCLIENTDIALOG_H
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
#ifndef APPDELEGATE_H
|
||||
#define APPDELEGATE_H
|
||||
#pragma once
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -21,4 +20,3 @@ extern "C" {
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // APPDELEGATE_H
|
||||
|
||||
@ -15,8 +15,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef DATADOWNLOADER_H
|
||||
#define DATADOWNLOADER_H
|
||||
#pragma once
|
||||
|
||||
#include <QByteArray>
|
||||
#include <QNetworkAccessManager>
|
||||
@ -48,5 +47,3 @@ private:
|
||||
QNetworkReply *m_pReply;
|
||||
bool m_IsFinished;
|
||||
};
|
||||
|
||||
#endif // DATADOWNLOADER_H
|
||||
|
||||
@ -15,10 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined(HOTKEY_H)
|
||||
|
||||
#define HOTKEY_H
|
||||
#pragma once
|
||||
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
@ -62,5 +59,3 @@ private:
|
||||
typedef QList<Hotkey> HotkeyList;
|
||||
|
||||
QTextStream &operator<<(QTextStream &outStream, const Hotkey &hotkey);
|
||||
|
||||
#endif
|
||||
|
||||
@ -15,10 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined(HOTKEYDIALOG_H)
|
||||
|
||||
#define HOTKEYDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include "Hotkey.h"
|
||||
#include "ui_HotkeyDialogBase.h"
|
||||
@ -46,5 +43,3 @@ protected:
|
||||
private:
|
||||
Hotkey &m_Hotkey;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -16,9 +16,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined(KEYSEQUENCE_H)
|
||||
|
||||
#define KEYSEQUENCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
@ -54,5 +52,3 @@ private:
|
||||
|
||||
static QString keyToString(int key);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -15,10 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined(KEYSEQUENCEWIDGET__H)
|
||||
|
||||
#define KEYSEQUENCEWIDGET__H
|
||||
#pragma once
|
||||
|
||||
#include <QPushButton>
|
||||
|
||||
@ -75,5 +72,3 @@ private:
|
||||
QString m_KeyPrefix;
|
||||
QString m_KeyPostfix;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -16,9 +16,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined(SERVERCONFIGDIALOG__H)
|
||||
|
||||
#define SERVERCONFIGDIALOG__H
|
||||
#pragma once
|
||||
|
||||
#include "ScreenSetupModel.h"
|
||||
#include "ServerConfig.h"
|
||||
@ -78,5 +76,3 @@ private:
|
||||
private slots:
|
||||
void onChange();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -15,10 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if !defined(TRASHSCREENWIDGET__H)
|
||||
|
||||
#define TRASHSCREENWIDGET__H
|
||||
#pragma once
|
||||
|
||||
#include <QLabel>
|
||||
|
||||
@ -39,5 +36,3 @@ public:
|
||||
signals:
|
||||
void screenRemoved();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -16,6 +16,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "arch/IArchString.h"
|
||||
|
||||
#if HAVE_VSNPRINTF
|
||||
|
||||
@ -14,8 +14,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef DESKFLOW_PATH_H
|
||||
#define DESKFLOW_PATH_H
|
||||
#pragma once
|
||||
|
||||
#include "String.h"
|
||||
|
||||
@ -32,5 +31,3 @@ std::string path(const String &filePath);
|
||||
} // namespace filesystem
|
||||
|
||||
} // namespace deskflow
|
||||
|
||||
#endif // DESKFLOW_PATH_H
|
||||
|
||||
@ -20,5 +20,5 @@
|
||||
// Prefix header for all source files of the 'deleteme' target in the 'deleteme'
|
||||
// project.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
#include <Carbon/Carbon.h>
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "common/stdpre.h"
|
||||
|
||||
|
||||
@ -15,9 +15,10 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "common/stdpre.h"
|
||||
|
||||
#include <deque>
|
||||
|
||||
#include "common/stdpost.h"
|
||||
#include "common/stdpost.h"
|
||||
|
||||
@ -15,6 +15,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
// apple declares _NOEXCEPT
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "common/stdpre.h"
|
||||
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "common/stdpre.h"
|
||||
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "common/stdpre.h"
|
||||
|
||||
|
||||
@ -15,9 +15,10 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "common/stdpre.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
#include "common/stdpost.h"
|
||||
#include "common/stdpost.h"
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "common/stdpre.h"
|
||||
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(disable : 4786) // identifier truncated
|
||||
|
||||
@ -15,9 +15,10 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "common/stdpre.h"
|
||||
|
||||
#include <set>
|
||||
|
||||
#include "common/stdpost.h"
|
||||
#include "common/stdpost.h"
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "common/stdpre.h"
|
||||
|
||||
|
||||
@ -15,9 +15,10 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "common/stdpre.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "common/stdpost.h"
|
||||
#include "common/stdpost.h"
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "common/stdpre.h"
|
||||
|
||||
|
||||
@ -15,8 +15,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef DESKFLOW_CORE_CLIENTARGS_H
|
||||
#define DESKFLOW_CORE_CLIENTARGS_H
|
||||
#pragma once
|
||||
|
||||
#include "ArgsBase.h"
|
||||
|
||||
@ -54,5 +53,3 @@ public:
|
||||
std::string m_serverAddress;
|
||||
};
|
||||
} // namespace deskflow
|
||||
|
||||
#endif // DESKFLOW_CORE_CLIENTARGS_H
|
||||
|
||||
@ -16,8 +16,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef CCLIENTTASKBARRECEIVER_H
|
||||
#define CCLIENTTASKBARRECEIVER_H
|
||||
#pragma once
|
||||
|
||||
#include "arch/IArchTaskBarReceiver.h"
|
||||
#include "base/String.h"
|
||||
@ -94,5 +93,3 @@ private:
|
||||
|
||||
IArchTaskBarReceiver *createTaskBarReceiver(
|
||||
const BufferedLogOutputter *logBuffer, IEventQueue *events);
|
||||
|
||||
#endif
|
||||
|
||||
@ -15,8 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef DESKFLOW_DISPLAYINVALIDEXCEPTION_H
|
||||
#define DESKFLOW_DISPLAYINVALIDEXCEPTION_H
|
||||
#pragma once
|
||||
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
@ -27,5 +26,3 @@ public:
|
||||
|
||||
DisplayInvalidException(std::string msg) : std::runtime_error(msg) {}
|
||||
};
|
||||
|
||||
#endif // DESKFLOW_DISPLAYINVALIDEXCEPTION_H
|
||||
|
||||
@ -14,8 +14,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef DESKFLOW_LANGUAGESLANGUAGEMANAGER_H
|
||||
#define DESKFLOW_LANGUAGESLANGUAGEMANAGER_H
|
||||
#pragma once
|
||||
|
||||
#include "base/String.h"
|
||||
#include "deskflow/AppUtil.h"
|
||||
@ -76,5 +75,3 @@ public:
|
||||
} // namespace languages
|
||||
|
||||
} // namespace deskflow
|
||||
|
||||
#endif // DESKFLOW_LANGUAGESLANGUAGEMANAGER_H
|
||||
|
||||
@ -17,8 +17,7 @@
|
||||
*/
|
||||
#if WINAPI_XWINDOWS
|
||||
|
||||
#ifndef XKBKEYBOARD_H
|
||||
#define XKBKEYBOARD_H
|
||||
#pragma once
|
||||
|
||||
#include <X11/XKBlib.h>
|
||||
#include <X11/extensions/XKBrules.h>
|
||||
@ -46,6 +45,4 @@ public:
|
||||
|
||||
} // namespace deskflow
|
||||
|
||||
#endif // XKBKEYBOARD_H
|
||||
|
||||
#endif // WINAPI_XWINDOWS
|
||||
|
||||
@ -15,8 +15,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef COMMANDTHREAD_H
|
||||
#define COMMANDTHREAD_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QStringList>
|
||||
@ -38,5 +37,3 @@ private:
|
||||
QStringList m_Arguments;
|
||||
QString m_Input;
|
||||
};
|
||||
|
||||
#endif // COMMANDTHREAD_H
|
||||
|
||||
@ -15,6 +15,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
#include <memory>
|
||||
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QTcpSocket>
|
||||
|
||||
|
||||
@ -16,8 +16,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef IMWINDOWSCLIPBOARDFACADE
|
||||
#define IMWINDOWSCLIPBOARDFACADE
|
||||
#pragma once
|
||||
|
||||
#include "common/IInterface.h"
|
||||
|
||||
@ -31,5 +30,3 @@ public:
|
||||
virtual void write(HANDLE win32Data, UINT win32Format) = 0;
|
||||
virtual ~IMSWindowsClipboardFacade() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@ -15,8 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef MSWINDOWSPOWERMANAGER_H
|
||||
#define MSWINDOWSPOWERMANAGER_H
|
||||
#pragma once
|
||||
|
||||
class MSWindowsPowerManager {
|
||||
public:
|
||||
@ -32,5 +31,3 @@ public:
|
||||
*/
|
||||
void enableSleep();
|
||||
};
|
||||
|
||||
#endif // MSWINDOWSPOWERMANAGER_H
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
|
||||
@ -16,8 +16,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef OSXPOWERMANAGER_H
|
||||
#define OSXPOWERMANAGER_H
|
||||
#pragma once
|
||||
|
||||
#include <IOKit/pwr_mgt/IOPMLib.h>
|
||||
|
||||
@ -43,5 +42,3 @@ private:
|
||||
// handler for assertion preventing the system from going to sleep
|
||||
IOPMAssertionID m_sleepPreventionAssertionID = 0;
|
||||
};
|
||||
|
||||
#endif // OSXPOWERMANAGER_H
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
|
||||
// ScreenSaver.framework private API
|
||||
// Class dumping by Alex Harper http://www.ragingmenace.com/
|
||||
#pragma once
|
||||
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
|
||||
@ -15,8 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef XWINDOWSPOWERMANAGER_H
|
||||
#define XWINDOWSPOWERMANAGER_H
|
||||
#pragma once
|
||||
|
||||
class XWindowsPowerManager {
|
||||
public:
|
||||
@ -36,5 +35,3 @@ public:
|
||||
XWindowsPowerManager(const XWindowsPowerManager &) = delete;
|
||||
XWindowsPowerManager &operator=(const XWindowsPowerManager &) = delete;
|
||||
};
|
||||
|
||||
#endif // XWINDOWSPOWERMANAGER_H
|
||||
|
||||
@ -14,8 +14,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef SERVER_CLIENTPROXY1_8_H
|
||||
#define SERVER_CLIENTPROXY1_8_H
|
||||
#pragma once
|
||||
|
||||
#include "server/ClientProxy1_7.h"
|
||||
|
||||
@ -31,5 +30,3 @@ public:
|
||||
private:
|
||||
void synchronizeLanguages() const;
|
||||
};
|
||||
|
||||
#endif // SERVER_CLIENTPROXY1_8_H
|
||||
|
||||
Reference in New Issue
Block a user