Style: Replace header guards with #pragma once

This commit is contained in:
Thaddeus Crews 2025-02-01 10:33:58 -06:00
parent 96fdaa616b
commit 324512e11c
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
1746 changed files with 1767 additions and 6920 deletions

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_AMPLIFY_H
#define AUDIO_EFFECT_AMPLIFY_H
#pragma once
#include "servers/audio/audio_effect.h"
@ -65,5 +64,3 @@ public:
AudioEffectAmplify();
};
#endif // AUDIO_EFFECT_AMPLIFY_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_CAPTURE_H
#define AUDIO_EFFECT_CAPTURE_H
#pragma once
#include "core/math/audio_frame.h"
#include "core/object/ref_counted.h"
@ -76,5 +75,3 @@ public:
int get_buffer_length_frames() const;
int64_t get_pushed_frames() const;
};
#endif // AUDIO_EFFECT_CAPTURE_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_CHORUS_H
#define AUDIO_EFFECT_CHORUS_H
#pragma once
#include "servers/audio/audio_effect.h"
@ -132,5 +131,3 @@ public:
AudioEffectChorus();
};
#endif // AUDIO_EFFECT_CHORUS_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_COMPRESSOR_H
#define AUDIO_EFFECT_COMPRESSOR_H
#pragma once
#include "servers/audio/audio_effect.h"
@ -90,5 +89,3 @@ public:
AudioEffectCompressor();
};
#endif // AUDIO_EFFECT_COMPRESSOR_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_DELAY_H
#define AUDIO_EFFECT_DELAY_H
#pragma once
#include "servers/audio/audio_effect.h"
@ -131,5 +130,3 @@ public:
AudioEffectDelay() {}
};
#endif // AUDIO_EFFECT_DELAY_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_DISTORTION_H
#define AUDIO_EFFECT_DISTORTION_H
#pragma once
#include "servers/audio/audio_effect.h"
@ -89,5 +88,3 @@ public:
};
VARIANT_ENUM_CAST(AudioEffectDistortion::Mode)
#endif // AUDIO_EFFECT_DISTORTION_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_EQ_H
#define AUDIO_EFFECT_EQ_H
#pragma once
#include "servers/audio/audio_effect.h"
#include "servers/audio/effects/eq_filter.h"
@ -97,5 +96,3 @@ public:
AudioEffectEQ21() :
AudioEffectEQ(EQ::PRESET_21_BANDS) {}
};
#endif // AUDIO_EFFECT_EQ_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_FILTER_H
#define AUDIO_EFFECT_FILTER_H
#pragma once
#include "servers/audio/audio_effect.h"
#include "servers/audio/audio_filter_sw.h"
@ -166,5 +165,3 @@ public:
AudioEffectHighShelfFilter() :
AudioEffectFilter(AudioFilterSW::HIGHSHELF) {}
};
#endif // AUDIO_EFFECT_FILTER_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_HARD_LIMITER_H
#define AUDIO_EFFECT_HARD_LIMITER_H
#pragma once
#include "servers/audio/audio_effect.h"
@ -85,5 +84,3 @@ public:
Ref<AudioEffectInstance> instantiate() override;
};
#endif // AUDIO_EFFECT_HARD_LIMITER_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_LIMITER_H
#define AUDIO_EFFECT_LIMITER_H
#pragma once
#include "servers/audio/audio_effect.h"
@ -75,5 +74,3 @@ public:
AudioEffectLimiter();
};
#endif // AUDIO_EFFECT_LIMITER_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_PANNER_H
#define AUDIO_EFFECT_PANNER_H
#pragma once
#include "servers/audio/audio_effect.h"
@ -60,5 +59,3 @@ public:
AudioEffectPanner();
};
#endif // AUDIO_EFFECT_PANNER_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_PHASER_H
#define AUDIO_EFFECT_PHASER_H
#pragma once
#include "servers/audio/audio_effect.h"
@ -102,5 +101,3 @@ public:
AudioEffectPhaser();
};
#endif // AUDIO_EFFECT_PHASER_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_PITCH_SHIFT_H
#define AUDIO_EFFECT_PITCH_SHIFT_H
#pragma once
#include "servers/audio/audio_effect.h"
@ -110,5 +109,3 @@ public:
};
VARIANT_ENUM_CAST(AudioEffectPitchShift::FFTSize);
#endif // AUDIO_EFFECT_PITCH_SHIFT_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_RECORD_H
#define AUDIO_EFFECT_RECORD_H
#pragma once
#include "core/os/thread.h"
#include "scene/resources/audio_stream_wav.h"
@ -94,5 +93,3 @@ public:
AudioEffectRecord();
~AudioEffectRecord();
};
#endif // AUDIO_EFFECT_RECORD_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_REVERB_H
#define AUDIO_EFFECT_REVERB_H
#pragma once
#include "servers/audio/audio_effect.h"
#include "servers/audio/effects/reverb_filter.h"
@ -93,5 +92,3 @@ public:
AudioEffectReverb();
};
#endif // AUDIO_EFFECT_REVERB_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_SPECTRUM_ANALYZER_H
#define AUDIO_EFFECT_SPECTRUM_ANALYZER_H
#pragma once
#include "servers/audio/audio_effect.h"
@ -103,5 +102,3 @@ public:
};
VARIANT_ENUM_CAST(AudioEffectSpectrumAnalyzer::FFTSize);
#endif // AUDIO_EFFECT_SPECTRUM_ANALYZER_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_EFFECT_STEREO_ENHANCE_H
#define AUDIO_EFFECT_STEREO_ENHANCE_H
#pragma once
#include "servers/audio/audio_effect.h"
@ -81,5 +80,3 @@ public:
AudioEffectStereoEnhance();
};
#endif // AUDIO_EFFECT_STEREO_ENHANCE_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_STREAM_GENERATOR_H
#define AUDIO_STREAM_GENERATOR_H
#pragma once
#include "core/templates/ring_buffer.h"
#include "servers/audio/audio_stream.h"
@ -112,5 +111,3 @@ public:
};
VARIANT_ENUM_CAST(AudioStreamGenerator::AudioStreamGeneratorMixRate);
#endif // AUDIO_STREAM_GENERATOR_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef EQ_FILTER_H
#define EQ_FILTER_H
#pragma once
#include "core/templates/vector.h"
@ -97,5 +96,3 @@ inline void EQ::BandProcess::process_one(float &p_data) {
history.b3 = history.b2;
history.b2 = history.b1;
}
#endif // EQ_FILTER_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef REVERB_FILTER_H
#define REVERB_FILTER_H
#pragma once
class Reverb {
public:
@ -114,5 +113,3 @@ public:
~Reverb();
};
#endif // REVERB_FILTER_H