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_UTIL_ACTION_STACK
#define HEADER_UTIL_ACTION_STACK
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -140,5 +139,3 @@ class ActionStack {
Type##variable.second = false)
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_AGE
#define HEADER_UTIL_AGE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -59,5 +58,3 @@ class Age {
*/
DECLARE_DYNAMIC_ARG (AtomicIntEquiv, last_update_age);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_ALIGNMENT
#define HEADER_UTIL_ALIGNMENT
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -74,5 +73,3 @@ enum Direction {
/** If the direction is horizontal the to_move.width is used, otherwise to_move.height */
RealPoint move_in_direction(Direction dir, const RealPoint& point, const RealSize to_move, double spacing = 0);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_ANGLE
#define HEADER_UTIL_ANGLE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -73,5 +72,3 @@ inline bool is_sideways(Radians angle) {
}
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_ATOMIC
#define HEADER_UTIL_ATOMIC
#pragma once
/** @file util/atomic.hpp
*
@@ -113,5 +112,3 @@
#endif
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_DEFAULTABLE
#define HEADER_UTIL_DEFAULTABLE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -86,5 +85,3 @@ void GetDefaultMember::handle(const Defaultable<T>& def) {
handle(def());
}
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_DELAYED_INDEX_MAPS
#define HEADER_UTIL_DELAYED_INDEX_MAPS
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -79,5 +78,3 @@ void GetDefaultMember::handle(const DelayedIndexMapsData<Key,Value>& d) {
handle(d.read_data);
}
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_DYNAMIC_ARG
#define HEADER_UTIL_DYNAMIC_ARG
#pragma once
/** @file util/dynamic_arg.hpp
*
@@ -118,5 +117,3 @@
#endif
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_ERROR
#define HEADER_UTIL_ERROR
#pragma once
/** @file util/error.hpp
*
@@ -181,5 +180,3 @@ String get_stack_trace();
handle_error(InternalError(_("An unexpected exception occurred!"))); \
}
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_FILE_UTILS
#define HEADER_UTIL_FILE_UTILS
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -62,5 +61,3 @@ bool rename_file_or_dir(const String& old_name, const String& new_name);
/// Move files/dirs that are ignored by packages to another directory
void move_ignored_files(const String& from_dir, const String& to_dir);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_FIND_REPLACE
#define HEADER_UTIL_FIND_REPLACE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -44,5 +43,3 @@ class FindInfo {
wxFindReplaceData& what; ///< What to search for, the direction to search in
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_FOR_EACH
#define HEADER_UTIL_FOR_EACH
#pragma once
/** @file util/for_each.hpp
*
@@ -140,5 +139,3 @@
TYPEOF_CIT(Collection2), TYPEOF_CREF(Collection2), Elem2, Collection2)
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_INDEX_MAP
#define HEADER_UTIL_INDEX_MAP
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -159,5 +158,3 @@ class DelayedIndexMaps {
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_IO_GET_MEMBER
#define HEADER_UTIL_IO_GET_MEMBER
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -160,5 +159,3 @@ class EnumGetMember {
GetDefaultMember& gdm; ///< The object to store output in
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_IO_PACKAGE
#define HEADER_UTIL_IO_PACKAGE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -297,5 +296,3 @@ inline void Package::readFile(const String& file, T& obj) {
}
}
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_IO_PACKAGE_MANAGER
#define HEADER_UTIL_IO_PACKAGE_MANAGER
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -234,5 +233,3 @@ class PackageVersion : public IntrusivePtrBase<PackageVersion> {
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_UTIL_IO_READER
#define HEADER_UTIL_IO_READER
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -299,5 +298,3 @@ class EnumReader {
String notDoneErrorMessage() const;
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_IO_WRITER
#define HEADER_UTIL_IO_WRITER
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -164,5 +163,3 @@ class EnumWriter {
Writer& writer; ///< The writer to write output to
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_LOCALE
#define HEADER_UTIL_LOCALE
#pragma once
/** @file util/locale.hpp
*
@@ -134,5 +133,3 @@ inline String format_string(const String& format, const String& a0, const String
return String::Format(format, a0.c_str(), a1.c_str(), a2.c_str(), a3.c_str());
}
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_ORDER_CACHE
#define HEADER_UTIL_ORDER_CACHE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -83,5 +82,3 @@ int OrderCache<T>::find(const T& key) const {
return it->second;
}
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_PLATFORM
#define HEADER_UTIL_PLATFORM
#pragma once
/** @file util/platform.hpp
*
@@ -31,5 +30,3 @@
#endif
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_PREC
#define HEADER_UTIL_PREC
#pragma once
/** @file util/prec.hpp
*
@@ -122,5 +121,3 @@ class FileName : public wxString {
#endif
#endif
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_REAL_POINT
#define HEADER_UTIL_REAL_POINT
#pragma once
/** @file util/real_point.hpp
*
@@ -225,5 +224,3 @@ inline void operator += (RealPoint& p, const RealSize& s) {
p.y += s.height;
}
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_REFLECT
#define HEADER_UTIL_REFLECT
#pragma once
/** @file util/reflect.hpp
*
@@ -193,5 +192,3 @@
/// Declare a possible value of an enum under the given name
#define VALUE_N(name, val) tag.handle(_(name), val, enum_)
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_REGEX
#define HEADER_UTIL_REGEX
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -177,5 +176,3 @@
#endif
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_ROTATION
#define HEADER_UTIL_ROTATION
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -217,5 +216,3 @@ class RotatedDC : public Rotation {
RenderQuality quality; ///< Quality of the text
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_SMART_PTR
#define HEADER_UTIL_SMART_PTR
#pragma once
/** @file util/smart_ptr.hpp
*
@@ -62,5 +61,3 @@ class IntrusivePtrBaseWithDelete : public IntrusivePtrBase<IntrusivePtrBaseWithD
/// Pointer to 'anything'
typedef intrusive_ptr<IntrusivePtrVirtualBase> VoidP;
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_SPEC_SORT
#define HEADER_UTIL_SPEC_SORT
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -44,5 +43,3 @@
*/
String spec_sort(const String& spec, String input);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_SPELL_CHECKER
#define HEADER_UTIL_SPELL_CHECKER
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -52,5 +51,3 @@ class SpellChecker : public Hunspell, public IntrusivePtrBase<SpellChecker> {
static map<String,SpellCheckerP> spellers; //< Cached checkers for each language
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_STRING
#define HEADER_UTIL_STRING
#pragma once
/** @file util/string.hpp
*
@@ -227,5 +226,3 @@ String regex_escape(const String& s);
/** Basicly replaces "(" with "(?:" */
String make_non_capturing(const String& re);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_TAGGED_STRING
#define HEADER_UTIL_TAGGED_STRING
#pragma once
/** @file util/tagged_string.hpp
*
@@ -218,5 +217,3 @@ String simplify_tagged_overlap(const String& str);
/// Turn straight quotes into curly ones or vice-versa
String curly_quotes(String str, bool curl);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_IO_VCS
#define HEADER_UTIL_IO_VCS
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -45,5 +44,3 @@ class VCS : public IntrusivePtrVirtualBase
DECLARE_REFLECTION_VIRTUAL();
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_IO_SUBVERSION
#define HEADER_UTIL_IO_SUBVERSION
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -23,5 +22,3 @@ class SubversionVCS : public VCS {
DECLARE_REFLECTION();
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -6
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_VECTOR2D
#define HEADER_UTIL_VECTOR2D
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -163,7 +162,3 @@ inline Vector2D operator * (const Vector2D& a, const Matrix2D& m) {
inline Matrix2D operator * (const Matrix2D& a, const Matrix2D& m) {
return Matrix2D(a.mx * m, a.my * m);
}
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_VERSION
#define HEADER_UTIL_VERSION
#pragma once
/** @file util/version.hpp
*
@@ -64,5 +63,3 @@ extern const Version file_version_symbol;
extern const Version file_version_clipboard;
extern const Version file_version_script;
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_WINDOW_ID
#define HEADER_UTIL_WINDOW_ID
#pragma once
/** @file util/window_id.hpp
*
@@ -288,5 +287,3 @@ enum ControlID {
, ID_DEFAULTS
};
// ----------------------------------------------------------------------------- : EOF
#endif