use #pragma once

This commit is contained in:
Volker Fischer 2019-07-09 08:52:38 +02:00
parent 96777cbab2
commit 11938e960b
25 changed files with 26 additions and 99 deletions

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined(_SOUND_H__9518A621345F78_3638457H73245GUIG9__INCLUDED_) #pragma once
#define _SOUND_H__9518A621345F78_3638457H73245GUIG9__INCLUDED_
#include <SLES/OpenSLES.h> #include <SLES/OpenSLES.h>
#include <SLES/OpenSLES_Android.h> #include <SLES/OpenSLES_Android.h>
@ -81,5 +80,3 @@ protected:
QMutex Mutex; QMutex Mutex;
}; };
#endif // !defined(_SOUND_H__9518A621345F78_3638457H73245GUIG9__INCLUDED_)

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined(_SOUND_H__9518A621345F78_3634567_8C0D_EEBF182CF549__INCLUDED_) #pragma once
#define _SOUND_H__9518A621345F78_3634567_8C0D_EEBF182CF549__INCLUDED_
#ifndef JACK_REPLACES_ASIO // these headers are not available in Windows OS #ifndef JACK_REPLACES_ASIO // these headers are not available in Windows OS
# include <unistd.h> # include <unistd.h>
@ -104,5 +103,3 @@ public:
virtual ~CSound() {} virtual ~CSound() {}
}; };
#endif // WITH_SOUND #endif // WITH_SOUND
#endif // !defined(_SOUND_H__9518A621345F78_3634567_8C0D_EEBF182CF549__INCLUDED_)

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined(_SOUND_H__9518A621345F78_363456876UZGSDF82CF549__INCLUDED_) #pragma once
#define _SOUND_H__9518A621345F78_363456876UZGSDF82CF549__INCLUDED_
#include <CoreAudio/CoreAudio.h> #include <CoreAudio/CoreAudio.h>
#include <CoreMIDI/CoreMIDI.h> #include <CoreMIDI/CoreMIDI.h>
@ -119,5 +118,3 @@ protected:
QMutex Mutex; QMutex Mutex;
}; };
#endif // !defined(_SOUND_H__9518A621345F78_363456876UZGSDF82CF549__INCLUDED_)

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( ANALYZERCONSOLE_H__FD6BKUBVE723IUH06C2AC__INCLUDED_ ) #pragma once
#define ANALYZERCONSOLE_H__FD6BKUBVE723IUH06C2AC__INCLUDED_
#include <QDialog> #include <QDialog>
#include <QTabWidget> #include <QTabWidget>
@ -90,5 +89,3 @@ protected:
public slots: public slots:
void OnTimerErrRateUpdate(); void OnTimerErrRateUpdate();
}; };
#endif // ANALYZERCONSOLE_H__FD6BKUBVE723IUH06C2AC__INCLUDED_

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( MIXERBOARD_H__FD6B49E1606C2AC__INCLUDED_ ) #pragma once
#define MIXERBOARD_H__FD6B49E1606C2AC__INCLUDED_
#include <QFrame> #include <QFrame>
#include <QGroupBox> #include <QGroupBox>
@ -155,5 +154,3 @@ signals:
void ChangeChanGain ( int iId, double dGain ); void ChangeChanGain ( int iId, double dGain );
void NumClientsChanged ( int iNewNumClients ); void NumClientsChanged ( int iNewNumClients );
}; };
#endif // MIXERBOARD_H__FD6B49E1606C2AC__INCLUDED_

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( BUFFER_H__3B123453_4344_BB23945IUHF1912__INCLUDED_ ) #pragma once
#define BUFFER_H__3B123453_4344_BB23945IUHF1912__INCLUDED_
#include "util.h" #include "util.h"
#include "global.h" #include "global.h"
@ -491,5 +490,3 @@ protected:
int iMemSize; int iMemSize;
int iPutPos; int iPutPos;
}; };
#endif /* !defined ( BUFFER_H__3B123453_4344_BB23945IUHF1912__INCLUDED_ ) */

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( CHANNEL_HOIH9345KJH98_3_4344_BB23945IUHF1912__INCLUDED_ ) #pragma once
#define CHANNEL_HOIH9345KJH98_3_4344_BB23945IUHF1912__INCLUDED_
#include <QThread> #include <QThread>
#include <QDateTime> #include <QDateTime>
@ -261,5 +260,3 @@ signals:
int iRecCounter, int iRecCounter,
int iRecID ); int iRecID );
}; };
#endif /* !defined ( CHANNEL_HOIH9345KJH98_3_4344_BB23945IUHF1912__INCLUDED_ ) */

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( CLIENT_HOIHGE76GEKJH98_3_43445KJIUHF1912__INCLUDED_ ) #pragma once
#define CLIENT_HOIHGE76GEKJH98_3_43445KJIUHF1912__INCLUDED_
#include <QHostAddress> #include <QHostAddress>
#include <QHostInfo> #include <QHostInfo>
@ -412,5 +411,3 @@ signals:
void Disconnected(); void Disconnected();
void ControllerInFaderLevel ( int iChannelIdx, int iValue ); void ControllerInFaderLevel ( int iChannelIdx, int iValue );
}; };
#endif /* !defined ( CLIENT_HOIHGE76GEKJH98_3_43445KJIUHF1912__INCLUDED_ ) */

View file

@ -47,8 +47,7 @@ LED bar: lbr
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( GLOBAL_H__3B123453_4344_BB2B_23E7A0D31912__INCLUDED_ ) #pragma once
#define GLOBAL_H__3B123453_4344_BB2B_23E7A0D31912__INCLUDED_
#if _WIN32 #if _WIN32
# define _CRT_SECURE_NO_WARNINGS # define _CRT_SECURE_NO_WARNINGS
@ -331,5 +330,3 @@ bool GetNumericArgument ( QTextStream& tsConsole,
double rRangeStart, double rRangeStart,
double rRangeStop, double rRangeStop,
double& rValue); double& rValue);
#endif /* !defined ( GLOBAL_H__3B123453_4344_BB2B_23E7A0D31912__INCLUDED_ ) */

View file

@ -23,8 +23,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#ifndef HISTORYGRAPH_H #pragma once
#define HISTORYGRAPH_H
#include <QDateTime> #include <QDateTime>
#include <QHostAddress> #include <QHostAddress>
@ -182,5 +181,3 @@ private:
public slots: public slots:
void OnTimerDailyUpdate() { Update(); } void OnTimerDailyUpdate() { Update(); }
}; };
#endif // HISTORYGRAPH_H

View file

@ -29,8 +29,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( _MULTCOLORLED_H__FD6B49B5_87DF_48DD_A873_804E1606C2AC__INCLUDED_ ) #pragma once
#define _MULTCOLORLED_H__FD6B49B5_87DF_48DD_A873_804E1606C2AC__INCLUDED_
#include <QLabel> #include <QLabel>
#include <QPixmap> #include <QPixmap>
@ -74,5 +73,3 @@ protected:
bool bFlagGreenLi; bool bFlagGreenLi;
bool bFlagYellowLi; bool bFlagYellowLi;
}; };
#endif // _MULTCOLORLED_H__FD6B49B5_87DF_48DD_A873_804E1606C2AC__INCLUDED_

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( _MULTCOLORLEDBAR_H__FD6B49B5_87DF_48DD_E1606C2AC__INCLUDED_ ) #pragma once
#define _MULTCOLORLEDBAR_H__FD6B49B5_87DF_48DD_E1606C2AC__INCLUDED_
#include <QFrame> #include <QFrame>
#include <QPixmap> #include <QPixmap>
@ -80,5 +79,3 @@ protected:
int iNumLEDs; int iNumLEDs;
CVector<cLED*> vecpLEDs; CVector<cLED*> vecpLEDs;
}; };
#endif // _MULTCOLORLEDBAR_H__FD6B49B5_87DF_48DD_E1606C2AC__INCLUDED_

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( PROTOCOL_H__3B123453_4344_BB2392354455IUHF1912__INCLUDED_ ) #pragma once
#define PROTOCOL_H__3B123453_4344_BB2392354455IUHF1912__INCLUDED_
#include <QMutex> #include <QMutex>
#include <QTimer> #include <QTimer>
@ -292,5 +291,3 @@ signals:
CVector<CChannelInfo> vecChanInfo ); CVector<CChannelInfo> vecChanInfo );
void CLReqConnClientsList ( CHostAddress InetAddr ); void CLReqConnClientsList ( CHostAddress InetAddr );
}; };
#endif /* !defined ( PROTOCOL_H__3B123453_4344_BB2392354455IUHF1912__INCLUDED_ ) */

View file

@ -21,8 +21,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#ifndef CREAPERPROJECT_H #pragma once
#define CREAPERPROJECT_H
#include <QUuid> #include <QUuid>
#include <QFileInfo> #include <QFileInfo>
@ -90,4 +89,3 @@ private:
}; };
} }
#endif // CREAPERPROJECT_H

View file

@ -21,8 +21,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#ifndef CWAVESTREAM_H #pragma once
#define CWAVESTREAM_H
#include <QDataStream> #include <QDataStream>
@ -89,5 +88,3 @@ private:
recorder::CWaveStream& operator<<(recorder::CWaveStream& out, recorder::HdrRiff& hdrRiff); recorder::CWaveStream& operator<<(recorder::CWaveStream& out, recorder::HdrRiff& hdrRiff);
recorder::CWaveStream& operator<<(recorder::CWaveStream& out, recorder::FmtSubChunk& fmtSubChunk); recorder::CWaveStream& operator<<(recorder::CWaveStream& out, recorder::FmtSubChunk& fmtSubChunk);
recorder::CWaveStream& operator<<(recorder::CWaveStream& out, recorder::DataSubChunkHdr& dataSubChunkHdr); recorder::CWaveStream& operator<<(recorder::CWaveStream& out, recorder::DataSubChunkHdr& dataSubChunkHdr);
#endif // CWAVESTREAM_H

View file

@ -21,8 +21,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#ifndef JAMRECORDER_H #pragma once
#define JAMRECORDER_H
#include <QDir> #include <QDir>
#include <QFile> #include <QFile>
@ -178,4 +177,3 @@ private:
Q_DECLARE_METATYPE(int16_t) Q_DECLARE_METATYPE(int16_t)
Q_DECLARE_METATYPE(CVector<int16_t>) Q_DECLARE_METATYPE(CVector<int16_t>)
#endif // JAMRECORDER_H

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( SERVER_HOIHGE7LOKIH83JH8_3_43445KJIUHF1912__INCLUDED_ ) #pragma once
#define SERVER_HOIHGE7LOKIH83JH8_3_43445KJIUHF1912__INCLUDED_
#include <QObject> #include <QObject>
#include <QTimer> #include <QTimer>
@ -458,5 +457,3 @@ public slots:
void OnServerAutoSockBufSizeChangeCh18 ( int iNNumFra ) { vecChannels[18].CreateJitBufMes ( iNNumFra ); } void OnServerAutoSockBufSizeChangeCh18 ( int iNNumFra ) { vecChannels[18].CreateJitBufMes ( iNNumFra ); }
void OnServerAutoSockBufSizeChangeCh19 ( int iNNumFra ) { vecChannels[19].CreateJitBufMes ( iNNumFra ); } void OnServerAutoSockBufSizeChangeCh19 ( int iNNumFra ) { vecChannels[19].CreateJitBufMes ( iNNumFra ); }
}; };
#endif /* !defined ( SERVER_HOIHGE7LOKIH83JH8_3_43445KJIUHF1912__INCLUDED_ ) */

View file

@ -57,8 +57,7 @@ private network.
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( SERVERLIST_HOIJH8OUWEF_WFEIOBU_3_43445KJIUHF1912__INCLUDED_ ) #pragma once
#define SERVERLIST_HOIJH8OUWEF_WFEIOBU_3_43445KJIUHF1912__INCLUDED_
#include <QObject> #include <QObject>
#include <QLocale> #include <QLocale>
@ -208,5 +207,3 @@ public slots:
void OnTimerRegistering() { SlaveServerRegisterServer ( true ); } void OnTimerRegistering() { SlaveServerRegisterServer ( true ); }
void OnTimerIsPermanent() { ServerList[0].bPermanentOnline = true; } void OnTimerIsPermanent() { ServerList[0].bPermanentOnline = true; }
}; };
#endif /* !defined ( SERVERLIST_HOIJH8OUWEF_WFEIOBU_3_43445KJIUHF1912__INCLUDED_ ) */

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#ifndef SERVERLOGGING_H #pragma once
#define SERVERLOGGING_H
#include <QDateTime> #include <QDateTime>
#include <QHostAddress> #include <QHostAddress>
@ -58,5 +57,3 @@ protected:
bool bDoLogging; bool bDoLogging;
QFile File; QFile File;
}; };
#endif // SERVERLOGGING_H

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( SETTINGS_H__3B0BA660_DGEG56G456G9876D31912__INCLUDED_ ) #pragma once
#define SETTINGS_H__3B0BA660_DGEG56G456G9876D31912__INCLUDED_
#include <QDomDocument> #include <QDomDocument>
#include <QFile> #include <QFile>
@ -112,5 +111,3 @@ protected:
bool bIsClient; bool bIsClient;
QString strFileName; QString strFileName;
}; };
#endif // !defined ( SETTINGS_H__3B0BA660_DGEG56G456G9876D31912__INCLUDED_ )

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( SOCKET_HOIHGE76GEKJH98_3_4344_BB23945IUHF1912__INCLUDED_ ) #pragma once
#define SOCKET_HOIHGE76GEKJH98_3_4344_BB23945IUHF1912__INCLUDED_
#include <QObject> #include <QObject>
#include <QMessageBox> #include <QMessageBox>
@ -229,5 +228,3 @@ protected:
signals: signals:
void InvalidPacketReceived ( CHostAddress RecHostAddr ); void InvalidPacketReceived ( CHostAddress RecHostAddr );
}; };
#endif /* !defined ( SOCKET_HOIHGE76GEKJH98_3_4344_BB23945IUHF1912__INCLUDED_ ) */

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( SOUNDBASE_HOIHGEH8_3_4344456456345634565KJIUHF1912__INCLUDED_ ) #pragma once
#define SOUNDBASE_HOIHGEH8_3_4344456456345634565KJIUHF1912__INCLUDED_
#include <QThread> #include <QThread>
#include <QString> #include <QString>
@ -132,5 +131,3 @@ signals:
void ReinitRequest ( int iSndCrdResetType ); void ReinitRequest ( int iSndCrdResetType );
void ControllerInFaderLevel ( int iChannelIdx, int iValue ); void ControllerInFaderLevel ( int iChannelIdx, int iValue );
}; };
#endif /* !defined ( SOUNDBASE_HOIHGEH8_3_4344456456345634565KJIUHF1912__INCLUDED_ ) */

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( TESTBENCH_HOIHJH8_3_43445KJIUHF1912__INCLUDED_ ) #pragma once
#define TESTBENCH_HOIHJH8_3_43445KJIUHF1912__INCLUDED_
#include <QObject> #include <QObject>
#include <QTimer> #include <QTimer>
@ -284,5 +283,3 @@ public slots:
Protocol.Reset(); Protocol.Reset();
} }
}; };
#endif /* !defined ( TESTBENCH_HOIHJH8_3_43445KJIUHF1912__INCLUDED_ ) */

View file

@ -22,8 +22,7 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( UTIL_HOIH934256GEKJH98_3_43445KJIUHF1912__INCLUDED_ ) #pragma once
#define UTIL_HOIH934256GEKJH98_3_43445KJIUHF1912__INCLUDED_
#include <QHostAddress> #include <QHostAddress>
#include <QHostInfo> #include <QHostInfo>
@ -47,6 +46,7 @@
#include "global.h" #include "global.h"
using namespace std; // because of the library: "vector" using namespace std; // because of the library: "vector"
#ifdef _WIN32 #ifdef _WIN32
# include <winsock2.h>
# include <windows.h> # include <windows.h>
# include <mmsystem.h> # include <mmsystem.h>
#elif defined ( __APPLE__ ) || defined ( __MACOSX ) #elif defined ( __APPLE__ ) || defined ( __MACOSX )
@ -1265,5 +1265,3 @@ protected:
bool bBlockOnDoubleErrors; bool bBlockOnDoubleErrors;
bool bPreviousState; bool bPreviousState;
}; };
#endif /* !defined ( UTIL_HOIH934256GEKJH98_3_43445KJIUHF1912__INCLUDED_ ) */

View file

@ -22,10 +22,8 @@
* *
\******************************************************************************/ \******************************************************************************/
#if !defined ( _SOUNDIN_H__9518A621_7F78_11D3_8C0D_EEBF182CF549__INCLUDED_ ) #pragma once
#define _SOUNDIN_H__9518A621_7F78_11D3_8C0D_EEBF182CF549__INCLUDED_
#include <windows.h>
#include <QMutex> #include <QMutex>
#include <QMessageBox> #include <QMessageBox>
#include "../src/util.h" #include "../src/util.h"
@ -152,5 +150,3 @@ protected:
char* cDriverNames[MAX_NUMBER_SOUND_CARDS]; char* cDriverNames[MAX_NUMBER_SOUND_CARDS];
}; };
#endif // !defined ( _SOUNDIN_H__9518A621_7F78_11D3_8C0D_EEBF182CF549__INCLUDED_ )