Remove include guards in favour of '#pragma once'. Normally I would use an include guard however #pragama once is easier to spot and we already used it in mst of our files, this is for the sake of consistency until they're removed.

Originally committed to SVN as r3538.
This commit is contained in:
Amar Takhar 2009-09-18 02:48:31 +00:00
parent aea050fbee
commit 11e1935d76
39 changed files with 43 additions and 316 deletions

View file

@ -34,10 +34,8 @@
/// @ingroup utility
///
#ifndef LOCALE_H
/// DOCME
#define LOCALE_H
#pragma once
//////////////
@ -68,8 +66,3 @@ public:
void Init(int language);
int PickLanguage();
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef ASS_STYLE_STORAGE_H
/// DOCME
#define ASS_STYLE_STORAGE_H
#pragma once
////////////
@ -73,8 +70,3 @@ public:
void Save(wxString name);
void Load(wxString name);
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef AUDIO_BOX_H
/// DOCME
#define AUDIO_BOX_H
#pragma once
///////////
@ -312,8 +309,3 @@ enum {
/// DOCME
Audio_Check_Spectrum
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef AUDIO_DISPLAY_H
/// DOCME
#define AUDIO_DISPLAY_H
#pragma once
///////////
@ -319,8 +316,3 @@ enum {
/// DOCME
Audio_Update_Timer = 1700
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef AUDIO_KARAOKE_H
/// DOCME
#define AUDIO_KARAOKE_H
#pragma once
///////////
@ -190,8 +187,3 @@ public:
DECLARE_EVENT_TABLE()
};
#endif

View file

@ -37,10 +37,8 @@
/// Calculate and render a frequency-power spectrum for PCM audio data.
#ifndef AUDIO_SPECTRUM_H
#pragma once
/// Include guard for audio_spectrum.h
#define AUDIO_SPECTRUM_H
#ifndef AGI_PRE
#include <stdint.h>
@ -109,8 +107,3 @@ public:
/// @param _power_scale Amplification factor to use.
void SetScaling(float _power_scale);
};
#endif

View file

@ -35,10 +35,8 @@
///
#ifndef _AUTO4_BASE_H
#pragma once
/// DOCME
#define _AUTO4_BASE_H
#ifndef AGI_PRE
#include <vector>
@ -554,7 +552,3 @@ namespace Automation4 {
};
};
#endif

View file

@ -35,10 +35,8 @@
///
#ifndef _AUTO4_LUA_H
#pragma once
/// DOCME
#define _AUTO4_LUA_H
#ifndef AGI_PRE
#include <wx/event.h>
@ -389,7 +387,3 @@ namespace Automation4 {
};
};
#endif

View file

@ -35,10 +35,8 @@
///
#ifndef _AUTO4_LUA_FACTORY_H
#pragma once
/// DOCME
#define _AUTO4_LUA_FACTORY_H
#include "auto4_base.h"
@ -61,7 +59,3 @@ namespace Automation4 {
};
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef AVISYNTH_WRAP_H
/// DOCME
#define AVISYNTH_WRAP_H
#pragma once
///////////
@ -100,6 +97,3 @@ public:
};
#endif
#endif

View file

@ -34,9 +34,7 @@
/// @brief Template class for creating caches for blocks of data
// Include guard
#ifndef BLOCK_CACHE_H
#define BLOCK_CACHE_H
#pragma once
#ifndef AGI_PRE
@ -310,8 +308,3 @@ public:
return 0;
}
};
// Include guard
#endif

View file

@ -34,10 +34,9 @@
/// @ingroup utility
///
#ifndef AEGISUB_CHARSET_CONV_H
/// DOCME
#define AEGISUB_CHARSET_CONV_H
#pragma once
#ifndef AGI_PRE
#include <iconv.h>
@ -172,7 +171,3 @@ extern AegisubCSConv& csConvLocal;
# define WCHAR_T_ENCODING ((Endian::MachineToBig((uint32_t)1) == 1) ? "UTF-16BE" : "UTF-16LE")
# endif
#endif
#endif

View file

@ -34,10 +34,9 @@
/// @ingroup utility
///
#ifndef COLORSPACE_H
/// DOCME
#define COLORSPACE_H
#pragma once
#ifndef AGI_PRE
#include <wx/colour.h>
@ -84,8 +83,3 @@ wxString color_to_html(wxColour color);
// Convert a HTML hex string to a wxColour
wxColour html_to_color(wxString html);
#endif

View file

@ -35,10 +35,8 @@
///
#ifndef DIALOG_AUTOMATION_H
#pragma once
/// DOCME
#define DIALOG_AUTOMATION_H
#ifndef AGI_PRE
#include <vector>
@ -140,7 +138,3 @@ enum {
/// DOCME
Automation_Reload_Autoload
};
#endif

View file

@ -34,10 +34,9 @@
/// @ingroup tools_ui
///
#ifndef DIALOG_COLORPICKER_H
/// DOCME
#define DIALOG_COLORPICKER_H
#pragma once
#ifndef AGI_PRE
#include <vector>
@ -390,8 +389,3 @@ enum {
/// DOCME
BUTTON_RGBADJUST
};
#endif

View file

@ -34,10 +34,9 @@
/// @ingroup secondary_ui
///
#ifndef _DIALOG_DUMMY_VIDEO_H
/// DOCME
#define _DIALOG_DUMMY_VIDEO_H
#pragma once
#ifndef AGI_PRE
#include <wx/checkbox.h>
@ -118,8 +117,3 @@ enum {
/// DOCME
Dummy_Video_Length,
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef DIALOG_JUMPTO_H
/// DOCME
#define DIALOG_JUMPTO_H
#pragma once
///////////
@ -84,7 +81,3 @@ public:
DECLARE_EVENT_TABLE()
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef DIALOG_KARA_TIMING_COPY_H
/// DOCME
#define DIALOG_KARA_TIMING_COPY_H
#pragma once
///////////
@ -156,8 +153,3 @@ enum {
/// DOCME
TEXT_DEST
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef DIALOG_PROGRESS_H
/// DOCME
#define DIALOG_PROGRESS_H
#pragma once
///////////
@ -108,8 +105,3 @@ public:
wxThread::ExitCode Entry();
void Close();
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef DIALOG_RESAMPLE_H
/// DOCME
#define DIALOG_RESAMPLE_H
#pragma once
///////////
@ -154,8 +151,3 @@ enum {
/// DOCME
TEXT_MARGIN_B
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef DIALOG_SELECTION_H
/// DOCME
#define DIALOG_SELECTION_H
#pragma once
///////////
@ -131,7 +128,3 @@ enum {
/// DOCME
MATCH_COMMENTS_CHECKBOX
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef DIALOG_SHIFT_TIMES_H
/// DOCME
#define DIALOG_SHIFT_TIMES_H
#pragma once
///////////
@ -151,8 +148,3 @@ enum {
/// DOCME
SHIFT_CLEAR_HISTORY
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef SPLASH_H
/// DOCME
#define SPLASH_H
#pragma once
////////////
@ -76,8 +73,3 @@ public:
DECLARE_EVENT_TABLE()
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef DIALOG_STYLE_EDITOR_H
/// DOCME
#define DIALOG_STYLE_EDITOR_H
#pragma once
////////////
@ -225,8 +222,3 @@ public:
DECLARE_EVENT_TABLE()
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef DIALOG_STYLE_MANAGER_H
/// DOCME
#define DIALOG_STYLE_MANAGER_H
#pragma once
////////////
@ -314,8 +311,3 @@ public:
DialogStyleManagerEvent(DialogStyleManager *control);
DECLARE_EVENT_TABLE()
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef DIALOG_STYLING_ASSISTANT_H
/// DOCME
#define DIALOG_STYLING_ASSISTANT_H
#pragma once
///////////
@ -176,8 +173,3 @@ enum {
/// DOCME
BUTTON_PLAY_AUDIO
};
#endif

View file

@ -34,10 +34,8 @@
/// @ingroup secondary_ui
///
#ifndef _DIALOG_TEXT_IMPORT_H
#pragma once
/// DOCME
#define _DIALOG_TEXT_IMPORT_H
///////////
// Headers
@ -82,6 +80,3 @@ enum {
/// DOCME
EDIT_COMMENT_STARTER,
};
#endif

View file

@ -34,10 +34,8 @@
/// @ingroup tools_ui
///
#ifndef DIALOG_TIMING_PROCESSOR
/// DOCME
#define DIALOG_TIMING_PROCESSOR
#pragma once
///////////
@ -193,8 +191,3 @@ enum {
/// DOCME
TIMING_STYLE_LIST
};
#endif

View file

@ -34,10 +34,7 @@
/// @ingroup tools_ui///
#ifndef DIALOG_TRANSLATION_H
/// DOCME
#define DIALOG_TRANSLATION_H
#pragma once
///////////
@ -171,8 +168,3 @@ enum {
/// DOCME
BUTTON_TRANS_PLAY_VIDEO
};
#endif

View file

@ -34,10 +34,8 @@
/// @ingroup secondary_ui
///
#ifndef _DIALOG_VIDEO_DETAILS_H
#pragma once
/// DOCME
#define _DIALOG_VIDEO_DETAILS_H
///////////
// Headers
@ -70,7 +68,3 @@ private:
public:
DialogVideoDetails(wxWindow *parent);
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef DROP_H
/// Inclusion guard
#define DROP_H
#pragma once
///////////
@ -69,5 +66,3 @@ public:
bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
//wxDragResult OnEnter(wxCoord x, wxCoord y, wxDragResult def);
};
#endif

View file

@ -35,10 +35,8 @@
///
#ifndef FFT_H
#pragma once
/// DOCME
#define FFT_H
#ifndef AGI_PRE
#include <stdlib.h> // size_t
@ -62,8 +60,3 @@ public:
unsigned int ReverseBits(unsigned int index, unsigned int bits);
float FrequencyAtIndex(unsigned int baseFreq, unsigned int n_samples, unsigned int index);
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef FRAME_MAIN_H
/// DOCME
#define FRAME_MAIN_H
#pragma once
///////////////////
@ -793,8 +790,3 @@ enum {
/// DOCME
Menu_Automation_Macro = 2700
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef HOTKEY_H
/// DOCME
#define HOTKEY_H
#pragma once
///////////
@ -137,8 +134,3 @@ public:
///////////////////
// Global instance
extern HotkeyManager Hotkeys;
#endif

View file

@ -54,10 +54,7 @@
///
/// The encoded string should be usable in any kind of field in an ASS file.
#ifndef _STRING_CODEC_H
/// DOCME
#define _STRING_CODEC_H
#pragma once
#ifndef AGI_PRE
#include <wx/string.h>
@ -65,7 +62,3 @@
wxString inline_string_encode(const wxString &input);
wxString inline_string_decode(const wxString &input);
#endif

View file

@ -34,11 +34,8 @@
/// @ingroup utility
///
#pragma once
#ifndef TEXT_FILE_WRITER_H
/// DOCME
#define TEXT_FILE_WRITER_H
#ifndef AGI_PRE
#include <fstream>
@ -74,7 +71,3 @@ public:
void WriteLineToFile(wxString line, bool addLineBreak=true);
};
#endif

View file

@ -35,10 +35,7 @@
///
#ifndef TOGGLE_BITMAP_H
/// DOCME
#define TOGGLE_BITMAP_H
#pragma once
///////////
@ -74,8 +71,3 @@ public:
DECLARE_EVENT_TABLE()
};
#endif

View file

@ -35,10 +35,8 @@
///
#ifndef VALIDATORS_H
#pragma once
/// DOCME
#define VALIDATORS_H
///////////
// Headers
@ -85,8 +83,3 @@ public:
DECLARE_EVENT_TABLE();
};
#endif

View file

@ -36,10 +36,8 @@
// The dummy video provider needs a header, since it needs to be created directly as a special case
#ifndef _VIDEO_PROVIDER_DUMMY_H
/// DOCME
#define _VIDEO_PROVIDER_DUMMY_H
#pragma once
///////////
@ -122,7 +120,3 @@ public:
wxString GetDecoderName();
};
#endif