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/soundio | |
parent | 6e6685fe7c5db184bdc0fad7d9956a0b43783574 (diff) |
Use #pragma once everywhere
Diffstat (limited to 'src/soundio')
-rw-r--r-- | src/soundio/sounddevice.h | 5 | ||||
-rw-r--r-- | src/soundio/sounddeviceerror.h | 5 | ||||
-rw-r--r-- | src/soundio/sounddevicenetwork.h | 5 | ||||
-rw-r--r-- | src/soundio/sounddevicenotfound.h | 5 | ||||
-rw-r--r-- | src/soundio/soundmanagerconfig.h | 4 |
5 files changed, 5 insertions, 19 deletions
diff --git a/src/soundio/sounddevice.h b/src/soundio/sounddevice.h index 5a9b103bc0..54c0dc6415 100644 --- a/src/soundio/sounddevice.h +++ b/src/soundio/sounddevice.h @@ -15,8 +15,7 @@ * * ***************************************************************************/ -#ifndef SOUNDDEVICE_H -#define SOUNDDEVICE_H +#pragma once #include <QString> #include <QList> @@ -108,5 +107,3 @@ class SoundDevice { }; typedef QSharedPointer<SoundDevice> SoundDevicePointer; - -#endif diff --git a/src/soundio/sounddeviceerror.h b/src/soundio/sounddeviceerror.h index 7fac1d7c41..7d6968b1fe 100644 --- a/src/soundio/sounddeviceerror.h +++ b/src/soundio/sounddeviceerror.h @@ -1,5 +1,4 @@ -#ifndef SOUNDDEVICEERROR_H -#define SOUNDDEVICEERROR_H +#pragma once // Used for returning errors from sounddevice functions. enum SoundDeviceError { @@ -10,5 +9,3 @@ enum SoundDeviceError { SOUNDDEVICE_ERROR_EXCESSIVE_INPUT_CHANNEL, SOUNDDEVICE_ERROR_DEVICE_COUNT }; - -#endif /* SOUNDDEVICEERROR_H */ diff --git a/src/soundio/sounddevicenetwork.h b/src/soundio/sounddevicenetwork.h index 3d28aeb844..7c5b8686e7 100644 --- a/src/soundio/sounddevicenetwork.h +++ b/src/soundio/sounddevicenetwork.h @@ -1,5 +1,4 @@ -#ifndef SOUNDDEVICENETWORK_H -#define SOUNDDEVICENETWORK_H +#pragma once #include <QString> #include <QSharedPointer> @@ -103,5 +102,3 @@ class SoundDeviceNetworkThread : public QThread { SoundDeviceNetwork* m_pParent; bool m_stop; }; - -#endif // SOUNDDEVICENETWORK_H diff --git a/src/soundio/sounddevicenotfound.h b/src/soundio/sounddevicenotfound.h index 00677a4c2c..2e36f1ebb3 100644 --- a/src/soundio/sounddevicenotfound.h +++ b/src/soundio/sounddevicenotfound.h @@ -1,5 +1,4 @@ -#ifndef SOUNDDEVICENOTFOUND_H -#define SOUNDDEVICENOTFOUND_H +#pragma once #include <QString> @@ -38,5 +37,3 @@ class SoundDeviceNotFound : public SoundDevice { return 44100; } }; - -#endif // SOUNDDEVICENOTFOUND_H diff --git a/src/soundio/soundmanagerconfig.h b/src/soundio/soundmanagerconfig.h index 3fe3bcff85..72c99d1c86 100644 --- a/src/soundio/soundmanagerconfig.h +++ b/src/soundio/soundmanagerconfig.h @@ -7,8 +7,7 @@ * * ***************************************************************************/ -#ifndef SOUNDMANAGERCONFIG_H -#define SOUNDMANAGERCONFIG_H +#pragma once #ifndef SOUNDMANAGERCONFIG_FILENAME #define SOUNDMANAGERCONFIG_FILENAME "soundconfig.xml" @@ -97,4 +96,3 @@ private: bool m_bExternalRecordBroadcastConnected; SoundManager* m_pSoundManager; }; -#endif |