mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-15 07:01:18 +02:00
Replace header guards with #pragma once
Signed-off-by: Leon Marz <main@lmarz.org>
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef __AUDACITY_IDENTIFIER__
|
||||
#define __AUDACITY_IDENTIFIER__
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <wx/string.h>
|
||||
@@ -234,6 +233,3 @@ using CommandIDs = std::vector<CommandID>;
|
||||
|
||||
struct ManualPageIDTag;
|
||||
using ManualPageID = TaggedIdentifier< ManualPageIDTag >;
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -9,8 +9,7 @@
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef __AUDACITY_INTERNAT__
|
||||
#define __AUDACITY_INTERNAT__
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <wx/longlong.h>
|
||||
@@ -163,5 +162,3 @@ private:
|
||||
// If not, then the program builds and runs, but strings in the catalog with
|
||||
// contexts will fail to translate
|
||||
#define HAS_I18N_CONTEXTS wxCHECK_VERSION(3, 1, 1)
|
||||
|
||||
#endif
|
||||
|
@@ -8,8 +8,7 @@
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef __AUDACITY_LANGUAGES__
|
||||
#define __AUDACITY_LANGUAGES__
|
||||
#pragma once
|
||||
|
||||
class wxArrayString;
|
||||
class wxString;
|
||||
@@ -56,5 +55,3 @@ STRINGS_API
|
||||
wxString GetLocaleName();
|
||||
|
||||
}
|
||||
|
||||
#endif // __AUDACITY_LANGUAGES__
|
||||
|
@@ -8,8 +8,7 @@
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef __AUDACITY_TRANSLATABLE_STRING__
|
||||
#define __AUDACITY_TRANSLATABLE_STRING__
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h> // for size_t
|
||||
#include <functional>
|
||||
@@ -320,5 +319,3 @@ inline Sink &operator <<( Sink &sink, const TranslatableString &str )
|
||||
review the uses of this function, separately from the uses of the type. */
|
||||
inline TranslatableString Verbatim( wxString str )
|
||||
{ return TranslatableString( std::move( str ) ); }
|
||||
|
||||
#endif
|
||||
|
@@ -8,8 +8,7 @@
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef __AUDACITY_WX_ARRAY_STRING_EX__
|
||||
#define __AUDACITY_WX_ARRAY_STRING_EX__
|
||||
#pragma once
|
||||
|
||||
#include <wx/arrstr.h>
|
||||
|
||||
@@ -69,5 +68,3 @@ public:
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef __AUDACITY_MEMORY_X_H__
|
||||
#define __AUDACITY_MEMORY_X_H__
|
||||
#pragma once
|
||||
|
||||
// C++ standard header <memory> with a few extensions
|
||||
#include <iterator>
|
||||
@@ -634,5 +633,3 @@ template< typename T > struct NonInterfering
|
||||
#define LINEAR_TO_DB(x) (20.0 * log10(x))
|
||||
|
||||
#define MAX_AUDIO (1. - 1./(1<<15))
|
||||
|
||||
#endif // __AUDACITY_MEMORY_X_H__
|
||||
|
@@ -8,8 +8,7 @@
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef __AUDACITY_MODULE_CONSTANTS__
|
||||
#define __AUDACITY_MODULE_CONSTANTS__
|
||||
#pragma once
|
||||
|
||||
#define ModuleDispatchName "ModuleDispatch"
|
||||
|
||||
@@ -52,5 +51,3 @@ extern "C" { \
|
||||
#define DEFINE_MODULE_ENTRIES \
|
||||
DEFINE_VERSION_CHECK \
|
||||
extern "C" DLL_API int ModuleDispatch(ModuleDispatchTypes type){ return 1; }
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user