Replace include guards by #pragma once

This commit is contained in:
Twan van Laarhoven
2020-04-26 01:25:16 +02:00
parent bad9981ad9
commit 54a3cbfde3
167 changed files with 167 additions and 670 deletions
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_ACTION_GENERIC
#define HEADER_DATA_ACTION_GENERIC
#pragma once
/** @file data/action/generic.hpp
*
@@ -112,5 +111,3 @@ void GenericAddAction<T>::perform(vector<T>& container, bool to_undo) const {
}
}
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_ACTION_KEYWORD
#define HEADER_DATA_ACTION_KEYWORD
#pragma once
/** @file data/action/keyword.hpp
*
@@ -100,5 +99,3 @@ class ChangeKeywordModeAction : public Action {
String mode;
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_ACTION_SET
#define HEADER_DATA_ACTION_SET
#pragma once
/** @file data/action/set.hpp
*
@@ -157,5 +156,3 @@ class ChangePackAction : public PackTypesAction {
size_t pos;
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_ACTION_SYMBOL
#define HEADER_DATA_ACTION_SYMBOL
#pragma once
/** @file data/action/symbol.hpp
*
@@ -314,5 +313,3 @@ class UngroupSymbolPartsAction : public GroupSymbolPartsActionBase {
virtual String getName(bool to_undo) const;
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_ACTION_SYMBOL_PART
#define HEADER_DATA_ACTION_SYMBOL_PART
#pragma once
/** @file data/action/symbol_part.hpp
*
@@ -236,5 +235,3 @@ class SymmetryCopiesAction : public Action {
String old_name;
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_ACTION_VALUE
#define HEADER_DATA_ACTION_VALUE
#pragma once
/** @file data/action/value.hpp
*
@@ -178,5 +177,3 @@ class ValueActionPerformer {
SetP set; ///< Set for the actions
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_ADD_CARDS_SCRIPT
#define HEADER_DATA_ADD_CARDS_SCRIPT
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -34,5 +33,3 @@ class AddCardsScript : public IntrusivePtrBase<AddCardsScript> {
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_CARD
#define HEADER_DATA_CARD
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -100,5 +99,3 @@ inline String type_name(const vector<CardP>&) {
void mark_dependency_member(const Card& value, const String& name, const Dependency& dep);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_DRAW_WHAT
#define HEADER_DATA_DRAW_WHAT
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -26,5 +25,3 @@ enum DrawWhat
, DRAW_NATIVELOOK = 0x400 // use a native look
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_EXPORT_TEMPLATE
#define HEADER_DATA_EXPORT_TEMPLATE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -62,5 +61,3 @@ struct ExportInfo {
DECLARE_DYNAMIC_ARG(ExportInfo*, export_info);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FIELD
#define HEADER_DATA_FIELD
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -306,5 +305,3 @@ inline String type_name(const Value&) {
void mark_dependency_member(const IndexMap<FieldP,ValueP>& value, const String& name, const Dependency& dep);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FIELD_BOOLEAN
#define HEADER_DATA_FIELD_BOOLEAN
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -57,5 +56,3 @@ class BooleanValue : public ChoiceValue {
DECLARE_REFLECTION();
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FIELD_CHOICE
#define HEADER_DATA_FIELD_CHOICE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -180,5 +179,3 @@ class ChoiceValue : public Value {
virtual bool update(Context&);
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FIELD_COLOR
#define HEADER_DATA_FIELD_COLOR
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -81,5 +80,3 @@ class ColorValue : public Value {
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FIELD_IMAGE
#define HEADER_DATA_FIELD_IMAGE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -52,5 +51,3 @@ class ImageValue : public Value {
Age last_update; ///< When was the image last changed?
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FIELD_INFORMATION
#define HEADER_DATA_FIELD_INFORMATION
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -65,5 +64,3 @@ class InfoValue : public Value {
virtual bool update(Context&);
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FIELD_MULTIPLE_CHOICE
#define HEADER_DATA_FIELD_MULTIPLE_CHOICE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -79,5 +78,3 @@ class MultipleChoiceValue : public ChoiceValue {
/// Is the given choice selected in the value?
bool chosen(const String& multiple_choice_value, const String& chioce);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FIELD_PACKAGE_CHOICE
#define HEADER_DATA_FIELD_PACKAGE_CHOICE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -66,5 +65,3 @@ class PackageChoiceValue : public Value {
virtual bool update(Context&);
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FIELD_SYMBOL
#define HEADER_DATA_FIELD_SYMBOL
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -72,5 +71,3 @@ class SymbolValue : public Value {
Age last_update; ///< When was the symbol last changed?
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FIELD_TEXT
#define HEADER_DATA_FIELD_TEXT
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -122,5 +121,3 @@ class FakeTextValue : public TextValue {
virtual bool equals(const Value* that);
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FILTER
#define HEADER_DATA_FILTER
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -84,5 +83,3 @@ class QuickFilter : public Filter<T> {
String query;
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FONT
#define HEADER_DATA_FONT
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -71,5 +70,3 @@ class Font : public IntrusivePtrBase<Font> {
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FORMAT_CLIPBOARD
#define HEADER_DATA_FORMAT_CLIPBOARD
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -57,5 +56,3 @@ class CardsOnClipboard : public wxDataObjectComposite {
CardsOnClipboard(const SetP& set, const vector<CardP>& cards);
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FORMAT_FORMATS
#define HEADER_DATA_FORMAT_FORMATS
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -108,5 +107,3 @@ void export_mws(Window* parent, const SetP& set);
/// Export a set to Apprentice
void export_apprentice(Window* parent, const SetP& set);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FORMAT_IMAGE_TO_SYMBOL
#define HEADER_DATA_FORMAT_IMAGE_TO_SYMBOL
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -33,5 +32,3 @@ void simplify_symbol(Symbol&);
/// Simplify a symbol parts, i.e. use bezier curves instead of lots of lines
void simplify_symbol_shape(SymbolShape&);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_GAME
#define HEADER_DATA_GAME
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -84,5 +83,3 @@ inline String type_name(const Game&) {
return _TYPE_("game");
}
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_GRAPH_TYPE
#define HEADER_DATA_GRAPH_TYPE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -32,5 +31,3 @@ inline size_t dimensionality(GraphType type) {
else return 0;
}
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_INSTALLER
#define HEADER_DATA_INSTALLER
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -196,5 +195,3 @@ extern String mse_package;
InstallablePackageP mse_installable_package();
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_KEYWORD
#define HEADER_DATA_KEYWORD
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -202,5 +201,3 @@ class KeywordParamValue : public ScriptValue {
virtual ScriptValueP getMember(const String& name) const;
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_LOCALE
#define HEADER_DATA_LOCALE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -52,5 +51,3 @@ protected:
/// The global locale object
extern LocaleP the_locale;
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_PACK
#define HEADER_DATA_PACK
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -145,5 +144,3 @@ class PackGenerator {
int max_depth;
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_SET
#define HEADER_DATA_SET
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -175,5 +174,3 @@ class SetView : public ActionListener {
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_SETTINGS
#define HEADER_DATA_SETTINGS
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -225,5 +224,3 @@ class Settings {
/// The global settings object
extern Settings settings;
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_STATISTICS
#define HEADER_DATA_STATISTICS
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -69,5 +68,3 @@ class StatsCategory : public IntrusivePtrBase<StatsCategory> {
DECLARE_REFLECTION();
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_STYLESHEET
#define HEADER_DATA_STYLESHEET
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -79,5 +78,3 @@ inline String type_name(const StyleSheet&) {
void mark_dependency_value(const StyleSheet& value, const Dependency& dep);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_SYMBOL
#define HEADER_DATA_SYMBOL
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -318,5 +317,3 @@ class SymbolView : public ActionListener {
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_SYMBOL_FONT
#define HEADER_DATA_SYMBOL_FONT
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -167,5 +166,3 @@ class SymbolFontRef {
void loadFont(Context& ctx);
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_WORD_LIST
#define HEADER_DATA_WORD_LIST
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -59,5 +58,3 @@ class AutoReplace : public IntrusivePtrVirtualBase {
DECLARE_REFLECTION();
};
// ----------------------------------------------------------------------------- : EOF
#endif