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_GFX_BEZIER
#define HEADER_GFX_BEZIER
#pragma once
/** @file gfx/bezier.hpp
*
@@ -122,5 +121,3 @@ UInt intersect_bezier_ray(const ControlPoint& p1, const ControlPoint& p2, const
// Does the line between p1 and p2 intersect the ray (half line) from (-inf, pos.y) to pos?
bool intersect_line_ray(const Vector2D& p1, const Vector2D& p2, const Vector2D& pos);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_GFX_COLOR
#define HEADER_GFX_COLOR
#pragma once
/** @file gfx/color.hpp
*
@@ -114,5 +113,3 @@ void recolor(Image& img, RGB cr);
/// Fills an image with the specified color
void fill_image(Image& image, RGB color);
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_GFX_GENERATED_IMAGE
#define HEADER_GFX_GENERATED_IMAGE
#pragma once
// ----------------------------------------------------------------------------- : Includes
@@ -386,5 +385,3 @@ class ImageValueToImage : public GeneratedImage {
Age age; ///< Age the symbol was last updated
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_GFX_GFX
#define HEADER_GFX_GFX
#pragma once
/** @file gfx/gfx.hpp
*
@@ -191,5 +190,3 @@ class AlphaMask : public IntrusivePtrBase<AlphaMask> {
void loadRowSizes() const;
};
// ----------------------------------------------------------------------------- : EOF
#endif
+1 -4
View File
@@ -4,8 +4,7 @@
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_GFX_POLYNOMIAL
#define HEADER_GFX_POLYNOMIAL
#pragma once
/** @file gfx/polynomial.hpp
*
@@ -39,5 +38,3 @@ UInt solve_cubic(double a, double b, double c, double d, double* roots);
*/
UInt solve_cubic(double a, double b, double c, double* roots);
// ----------------------------------------------------------------------------- : EOF
#endif