Commit 75884545 authored by Patrick José Pereira's avatar Patrick José Pereira

comm: Move to pragma once

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 9d2204be
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
* *
*/ */
#ifndef BTLINK_H #pragma once
#define BTLINK_H
#include <QString> #include <QString>
#include <QList> #include <QList>
...@@ -194,4 +193,3 @@ private: ...@@ -194,4 +193,3 @@ private:
}; };
#endif // BTLINK_H
#ifndef _CALLCONV_H_ #pragma once
#define _CALLCONV_H_
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#define CALLTYPEXBEE __stdcall #define CALLTYPEXBEE __stdcall
#else // Q_OS_WIN #else // Q_OS_WIN
#define CALLTYPEXBEE #define CALLTYPEXBEE
#endif // Q_OS_WIN
#endif // _CALLCONV_H_
\ No newline at end of file
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
* *
****************************************************************************/ ****************************************************************************/
#ifndef LINKCONFIGURATION_H #pragma once
#define LINKCONFIGURATION_H
#include <QSettings> #include <QSettings>
...@@ -208,4 +207,3 @@ private: ...@@ -208,4 +207,3 @@ private:
typedef QSharedPointer<LinkConfiguration> SharedLinkConfigurationPointer; typedef QSharedPointer<LinkConfiguration> SharedLinkConfigurationPointer;
#endif // LINKCONFIGURATION_H
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
* *
****************************************************************************/ ****************************************************************************/
#ifndef _LINKINTERFACE_H_ #pragma once
#define _LINKINTERFACE_H_
#include <QThread> #include <QThread>
#include <QDateTime> #include <QDateTime>
...@@ -308,4 +307,3 @@ private: ...@@ -308,4 +307,3 @@ private:
typedef QSharedPointer<LinkInterface> SharedLinkInterfacePointer; typedef QSharedPointer<LinkInterface> SharedLinkInterfacePointer;
#endif // _LINKINTERFACE_H_
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
/// @file /// @file
/// @author Lorenz Meier <mavteam@student.ethz.ch> /// @author Lorenz Meier <mavteam@student.ethz.ch>
#ifndef _LINKMANAGER_H_ #pragma once
#define _LINKMANAGER_H_
#include <QList> #include <QList>
#include <QMultiMap> #include <QMultiMap>
...@@ -244,4 +243,3 @@ private: ...@@ -244,4 +243,3 @@ private:
#endif #endif
}; };
#endif
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
****************************************************************************/ ****************************************************************************/
#ifndef LogReplayLink_H #pragma once
#define LogReplayLink_H
#include "LinkInterface.h" #include "LinkInterface.h"
#include "LinkConfiguration.h" #include "LinkConfiguration.h"
...@@ -155,4 +154,3 @@ private: ...@@ -155,4 +154,3 @@ private:
static const int cbTimestamp = sizeof(quint64); static const int cbTimestamp = sizeof(quint64);
}; };
#endif
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
* *
****************************************************************************/ ****************************************************************************/
#ifndef MAVLINKPROTOCOL_H_ #pragma once
#define MAVLINKPROTOCOL_H_
#include <QObject> #include <QObject>
#include <QMutex> #include <QMutex>
...@@ -171,4 +170,3 @@ private: ...@@ -171,4 +170,3 @@ private:
MultiVehicleManager* _multiVehicleManager; MultiVehicleManager* _multiVehicleManager;
}; };
#endif // MAVLINKPROTOCOL_H_
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef _MAVLINKMESSAGESTIMER_H_ #pragma once
#define _MAVLINKMESSAGESTIMER_H_
#include <QTimer> #include <QTimer>
#include <QObject> #include <QObject>
...@@ -103,4 +102,3 @@ private: ...@@ -103,4 +102,3 @@ private:
static const int _messageReceivedTimeoutMSecs = 3500; // Signal connection lost after 3.5 seconds of no messages static const int _messageReceivedTimeoutMSecs = 3500; // Signal connection lost after 3.5 seconds of no messages
}; };
#endif // _MAVLINKMESSAGESTIMER_H_
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
****************************************************************************/ ****************************************************************************/
#ifndef MOCKLINK_H #pragma once
#define MOCKLINK_H
#include <QMap> #include <QMap>
#include <QLoggingCategory> #include <QLoggingCategory>
...@@ -259,4 +258,3 @@ private: ...@@ -259,4 +258,3 @@ private:
static const char* _failParam; static const char* _failParam;
}; };
#endif
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
/// @file /// @file
/// @author Don Gagne <don@thegagnes.com> /// @author Don Gagne <don@thegagnes.com>
#ifndef MockLinkFileServer_H #pragma once
#define MockLinkFileServer_H
#include "FileManager.h" #include "FileManager.h"
...@@ -110,4 +109,3 @@ private: ...@@ -110,4 +109,3 @@ private:
bool _randomDropsEnabled; bool _randomDropsEnabled;
}; };
#endif
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
****************************************************************************/ ****************************************************************************/
#ifndef MockLinkMissionItemHandler_H #pragma once
#define MockLinkMissionItemHandler_H
#include <QObject> #include <QObject>
#include <QMap> #include <QMap>
...@@ -115,4 +114,3 @@ private: ...@@ -115,4 +114,3 @@ private:
bool _failWriteMissionCountFirstResponse; bool _failWriteMissionCountFirstResponse;
}; };
#endif
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
* *
*/ */
#ifndef QGCFLIGHTGEARLINK_H #pragma once
#define QGCFLIGHTGEARLINK_H
#include <QString> #include <QString>
#include <QList> #include <QList>
...@@ -160,4 +159,3 @@ private: ...@@ -160,4 +159,3 @@ private:
float barometerOffsetkPa; float barometerOffsetkPa;
}; };
#endif // QGCFLIGHTGEARLINK_H
#ifndef QGCHILLINK_H #pragma once
#define QGCHILLINK_H
#include <QThread> #include <QThread>
#include <QProcess> #include <QProcess>
...@@ -148,4 +147,3 @@ signals: ...@@ -148,4 +147,3 @@ signals:
void _invokeWriteBytes(QByteArray); void _invokeWriteBytes(QByteArray);
}; };
#endif // QGCHILLINK_H
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
* *
*/ */
#ifndef QGCJSBSIMLINK_H #pragma once
#define QGCJSBSIMLINK_H
#include <QString> #include <QString>
#include <QList> #include <QList>
...@@ -147,4 +146,3 @@ private: ...@@ -147,4 +146,3 @@ private:
void setName(QString name); void setName(QString name);
}; };
#endif // QGCJSBSimLink_H
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -14,8 +14,7 @@ ...@@ -14,8 +14,7 @@
* @author Lorenz Meier <pixhawk@switched.com> * @author Lorenz Meier <pixhawk@switched.com>
*/ */
#ifndef QGCMAVLINK_H #pragma once
#define QGCMAVLINK_H
#define MAVLINK_USE_MESSAGE_INFO #define MAVLINK_USE_MESSAGE_INFO
#define MAVLINK_EXTERNAL_RX_STATUS // Single m_mavlink_status instance is in QGCApplication.cc #define MAVLINK_EXTERNAL_RX_STATUS // Single m_mavlink_status instance is in QGCApplication.cc
...@@ -33,5 +32,4 @@ public: ...@@ -33,5 +32,4 @@ public:
static bool isVTOL(MAV_TYPE mavType); static bool isVTOL(MAV_TYPE mavType);
}; };
#endif // QGCMAVLINK_H
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
****************************************************************************/ ****************************************************************************/
#ifndef QGCSerialPortInfo_H #pragma once
#define QGCSerialPortInfo_H
#ifdef __android__ #ifdef __android__
#include "qserialportinfo.h" #include "qserialportinfo.h"
...@@ -91,4 +90,3 @@ private: ...@@ -91,4 +90,3 @@ private:
static QList<BoardFallback_t> _boardFallbackList; static QList<BoardFallback_t> _boardFallbackList;
}; };
#endif
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
* *
*/ */
#ifndef QGCXPLANESIMULATIONLINK_H #pragma once
#define QGCXPLANESIMULATIONLINK_H
#include <QString> #include <QString>
#include <QList> #include <QList>
...@@ -235,4 +234,3 @@ protected: ...@@ -235,4 +234,3 @@ protected:
void sendDataRef(QString ref, float value); void sendDataRef(QString ref, float value);
}; };
#endif // QGCXPLANESIMULATIONLINK_H
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -16,8 +16,7 @@ ...@@ -16,8 +16,7 @@
* *
*/ */
#ifndef SERIALINTERFACE_H #pragma once
#define SERIALINTERFACE_H
#include <QIODevice> #include <QIODevice>
#include <QtSerialPort/QSerialPort> #include <QtSerialPort/QSerialPort>
...@@ -201,6 +200,5 @@ public: ...@@ -201,6 +200,5 @@ public:
} }
}; };
#endif // SERIALINTERFACE_H
// vim:ts=4:sw=4:tw=78:expandtab: // vim:ts=4:sw=4:tw=78:expandtab:
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -16,8 +16,7 @@ ...@@ -16,8 +16,7 @@
* *
*/ */
#ifndef SERIALLINK_H #pragma once
#define SERIALLINK_H
class LinkInterface; class LinkInterface;
class SerialConfiguration; class SerialConfiguration;
...@@ -194,4 +193,3 @@ signals: ...@@ -194,4 +193,3 @@ signals:
}; };
#endif // SERIALLINK_H
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -13,8 +13,7 @@ ...@@ -13,8 +13,7 @@
/// ///
/// @author Don Gagne <don@thegagnes.com> /// @author Don Gagne <don@thegagnes.com>
#ifndef TCPLINK_H #pragma once
#define TCPLINK_H
#include <QString> #include <QString>
#include <QList> #include <QList>
...@@ -188,4 +187,3 @@ private: ...@@ -188,4 +187,3 @@ private:
QMutex _statisticsMutex; QMutex _statisticsMutex;
}; };
#endif // TCPLINK_H
/**************************************************************************** /****************************************************************************
* *
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* *
* QGroundControl is licensed according to the terms in the file * QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory. * COPYING.md in the root of the source code directory.
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
* *
*/ */
#ifndef UDPLINK_H #pragma once
#define UDPLINK_H
#include <QString> #include <QString>
#include <QList> #include <QList>
...@@ -204,4 +203,3 @@ private: ...@@ -204,4 +203,3 @@ private:
}; };
#endif // UDPLINK_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment