diff options
author | xerus2000 <27jf@pm.me> | 2020-08-13 13:47:36 +0200 |
---|---|---|
committer | xerus2000 <27jf@pm.me> | 2020-11-10 23:39:30 +0100 |
commit | 99419f9a8265221faab895f8f7d9b500b1789f4e (patch) | |
tree | 3a139cd2dbfeb726fa0ae4a913b56dddf91c8b2d /src/control | |
parent | 6e6685fe7c5db184bdc0fad7d9956a0b43783574 (diff) |
Use #pragma once everywhere
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/controlaudiotaperpot.h | 5 | ||||
-rw-r--r-- | src/control/controlbehavior.h | 5 | ||||
-rw-r--r-- | src/control/controleffectknob.h | 5 | ||||
-rw-r--r-- | src/control/controlencoder.h | 5 | ||||
-rw-r--r-- | src/control/controlindicator.h | 5 | ||||
-rw-r--r-- | src/control/controllinpotmeter.h | 5 | ||||
-rw-r--r-- | src/control/controllogpotmeter.h | 5 | ||||
-rw-r--r-- | src/control/controlmodel.h | 5 | ||||
-rw-r--r-- | src/control/controlobjectscript.h | 5 | ||||
-rw-r--r-- | src/control/controlpotmeter.h | 5 | ||||
-rw-r--r-- | src/control/controlproxy.h | 5 | ||||
-rw-r--r-- | src/control/controlttrotary.h | 5 |
12 files changed, 12 insertions, 48 deletions
diff --git a/src/control/controlaudiotaperpot.h b/src/control/controlaudiotaperpot.h index 8ffc6b1644..6c01567c45 100644 --- a/src/control/controlaudiotaperpot.h +++ b/src/control/controlaudiotaperpot.h @@ -1,6 +1,5 @@ -#ifndef CONTROLAUDIOTAPERPOT_H -#define CONTROLAUDIOTAPERPOT_H +#pragma once #include "control/controlpotmeter.h" #include "preferences/usersettings.h" @@ -14,5 +13,3 @@ class ControlAudioTaperPot : public ControlPotmeter { // neutralParameter is a knob position between 0 and 1 where the gain is 1 (0dB) ControlAudioTaperPot(ConfigKey key, double minDB, double maxDB, double neutralParameter); }; - -#endif // CONTROLAUDIOTAPERPOT_H diff --git a/src/control/controlbehavior.h b/src/control/controlbehavior.h index 08f48b724b..1075cf0bea 100644 --- a/src/control/controlbehavior.h +++ b/src/control/controlbehavior.h @@ -1,5 +1,4 @@ -#ifndef CONTROLBEHAVIOR_H -#define CONTROLBEHAVIOR_H +#pragma once #include <QTimer> #include <QScopedPointer> @@ -159,5 +158,3 @@ class ControlPushButtonBehavior : public ControlNumericBehavior { int m_iNumStates; QScopedPointer<QTimer> m_pushTimer; }; - -#endif /* CONTROLBEHAVIOR_H */ diff --git a/src/control/controleffectknob.h b/src/control/controleffectknob.h index eabb38e07b..d46918ff6f 100644 --- a/src/control/controleffectknob.h +++ b/src/control/controleffectknob.h @@ -1,5 +1,4 @@ -#ifndef CONTROLEFFECTKNOB_H -#define CONTROLEFFECTKNOB_H +#pragma once #include "control/controlpotmeter.h" #include "effects/effectmanifestparameter.h" @@ -12,5 +11,3 @@ class ControlEffectKnob : public ControlPotmeter { void setBehaviour(EffectManifestParameter::ControlHint type, double dMinValue, double dMaxValue); }; - -#endif // CONTROLLEFFECTKNOB_H diff --git a/src/control/controlencoder.h b/src/control/controlencoder.h index 1bbd3c986d..bbfc14523d 100644 --- a/src/control/controlencoder.h +++ b/src/control/controlencoder.h @@ -1,5 +1,4 @@ -#ifndef CONTROLENCODER_H -#define CONTROLENCODER_H +#pragma once #include "preferences/usersettings.h" #include "control/controlobject.h" @@ -9,5 +8,3 @@ class ControlEncoder : public ControlObject { public: ControlEncoder(ConfigKey key, bool bIgnoreNops=true); }; - -#endif diff --git a/src/control/controlindicator.h b/src/control/controlindicator.h index d723c8b8a1..a232683074 100644 --- a/src/control/controlindicator.h +++ b/src/control/controlindicator.h @@ -1,5 +1,4 @@ -#ifndef CONTROLINDICATOR_H -#define CONTROLINDICATOR_H +#pragma once #include "control/controlobject.h" @@ -39,5 +38,3 @@ class ControlIndicator : public ControlObject { ControlProxy* m_pCOTGuiTickTime; ControlProxy* m_pCOTGuiTick50ms; }; - -#endif // CONTROLINDICATOR_H diff --git a/src/control/controllinpotmeter.h b/src/control/controllinpotmeter.h index b958992425..acbb1b50bb 100644 --- a/src/control/controllinpotmeter.h +++ b/src/control/controllinpotmeter.h @@ -1,5 +1,4 @@ -#ifndef CONTROLLINPOTMETER_H -#define CONTROLLINPOTMETER_H +#pragma once #include "control/controlpotmeter.h" @@ -12,5 +11,3 @@ class ControlLinPotmeter : public ControlPotmeter { double dStep = 0, double dSmallStep = 0, bool allowOutOfBounds = false); }; - -#endif // CONTROLLINPOTMETER_H diff --git a/src/control/controllogpotmeter.h b/src/control/controllogpotmeter.h index bac9e0e284..f53f2a1d5c 100644 --- a/src/control/controllogpotmeter.h +++ b/src/control/controllogpotmeter.h @@ -15,8 +15,7 @@ * * ***************************************************************************/ -#ifndef CONTROLLOGPOTMETER_H -#define CONTROLLOGPOTMETER_H +#pragma once #include "control/controlpotmeter.h" #include "preferences/usersettings.h" @@ -26,5 +25,3 @@ class ControlLogpotmeter : public ControlPotmeter { public: ControlLogpotmeter(ConfigKey key, double dMaxValue, double minDB); }; - -#endif diff --git a/src/control/controlmodel.h b/src/control/controlmodel.h index 336d505046..93df7b330a 100644 --- a/src/control/controlmodel.h +++ b/src/control/controlmodel.h @@ -1,5 +1,4 @@ -#ifndef CONTROLMODEL_H -#define CONTROLMODEL_H +#pragma once #include <QAbstractTableModel> #include <QVariant> @@ -58,5 +57,3 @@ class ControlModel final : public QAbstractTableModel { QVector<QHash<int, QVariant> > m_headerInfo; QList<ControlInfo> m_controls; }; - -#endif /* CONTROLMODEL_H */ diff --git a/src/control/controlobjectscript.h b/src/control/controlobjectscript.h index 853c1435cf..c190698bae 100644 --- a/src/control/controlobjectscript.h +++ b/src/control/controlobjectscript.h @@ -1,5 +1,4 @@ -#ifndef CONTROLOBJECTSCRIPT_H -#define CONTROLOBJECTSCRIPT_H +#pragma once #include <QVector> @@ -40,5 +39,3 @@ class ControlObjectScript : public ControlProxy { private: QList<ScriptConnection> m_scriptConnections; }; - -#endif // CONTROLOBJECTSCRIPT_H diff --git a/src/control/controlpotmeter.h b/src/control/controlpotmeter.h index 226baebb2d..ab2e7b3540 100644 --- a/src/control/controlpotmeter.h +++ b/src/control/controlpotmeter.h @@ -15,8 +15,7 @@ * * ***************************************************************************/ -#ifndef CONTROLPOTMETER_H -#define CONTROLPOTMETER_H +#pragma once #include "preferences/usersettings.h" #include "control/controlobject.h" @@ -91,5 +90,3 @@ class ControlPotmeter : public ControlObject { bool m_bAllowOutOfBounds; PotmeterControls m_controls; }; - -#endif diff --git a/src/control/controlproxy.h b/src/control/controlproxy.h index e86fc08670..4eab2fa38d 100644 --- a/src/control/controlproxy.h +++ b/src/control/controlproxy.h @@ -1,5 +1,4 @@ -#ifndef CONTROLPROXY_H -#define CONTROLPROXY_H +#pragma once #include <QObject> #include <QSharedPointer> @@ -207,5 +206,3 @@ class ControlProxy : public QObject { // Pointer to connected control. QSharedPointer<ControlDoublePrivate> m_pControl; }; - -#endif // CONTROLPROXY_H diff --git a/src/control/controlttrotary.h b/src/control/controlttrotary.h index edef5bd2f9..a9dc767967 100644 --- a/src/control/controlttrotary.h +++ b/src/control/controlttrotary.h @@ -14,8 +14,7 @@ * * ***************************************************************************/ -#ifndef CONTROLTTROTARY_H -#define CONTROLTTROTARY_H +#pragma once #include "preferences/usersettings.h" #include "control/controlobject.h" @@ -25,5 +24,3 @@ class ControlTTRotary : public ControlObject { public: ControlTTRotary(ConfigKey key); }; - -#endif |