diff --git a/src/DrawingCallback.h b/src/DrawingCallback.h index 1ebd1728..825b1b8c 100644 --- a/src/DrawingCallback.h +++ b/src/DrawingCallback.h @@ -23,8 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ -#ifndef DRAWINGCALLBACK_H -#define DRAWINGCALLBACK_H +#pragma once #include #include @@ -62,6 +61,3 @@ private: return pow(1.0 - t, exp); } }; - -#endif /* DRAWINGCALLBACK_H */ - diff --git a/src/FontCache.h b/src/FontCache.h index 1fc7b414..58d79f09 100644 --- a/src/FontCache.h +++ b/src/FontCache.h @@ -23,8 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ -#ifndef FONTCACHE_H -#define FONTCACHE_H +#pragma once #include #include @@ -96,5 +95,3 @@ private: FT_Face find_face_in_path(std::string path, std::string font); }; -#endif /* FONTCACHE_H */ - diff --git a/src/FontListDialog.h b/src/FontListDialog.h index b1cbaa97..34a4042a 100644 --- a/src/FontListDialog.h +++ b/src/FontListDialog.h @@ -1,5 +1,4 @@ -#ifndef FONTLISTDIALOG_H_ -#define FONTLISTDIALOG_H_ +#pragma once #include @@ -19,5 +18,3 @@ public: private: QStandardItemModel *model; }; - -#endif diff --git a/src/FreetypeRenderer.h b/src/FreetypeRenderer.h index 1332d9cf..4b07731d 100644 --- a/src/FreetypeRenderer.h +++ b/src/FreetypeRenderer.h @@ -23,8 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ -#ifndef FREETYPERENDERER_H -#define FREETYPERENDERER_H +#pragma once #include #include @@ -136,6 +135,3 @@ private: static int outline_conic_to_func(const FT_Vector *c1, const FT_Vector *to, void *user); static int outline_cubic_to_func(const FT_Vector *c1, const FT_Vector *c2, const FT_Vector *to, void *user); }; - -#endif /* FREETYPERENDERER_H */ - diff --git a/src/Geometry.h b/src/Geometry.h index 042a0658..ffe7bf22 100644 --- a/src/Geometry.h +++ b/src/Geometry.h @@ -1,5 +1,4 @@ -#ifndef GEOMETRY_H_ -#define GEOMETRY_H_ +#pragma once #include #include @@ -29,5 +28,3 @@ public: protected: int convexity; }; - -#endif diff --git a/src/GeometryCache.h b/src/GeometryCache.h index 7dfaad73..5dd380ea 100644 --- a/src/GeometryCache.h +++ b/src/GeometryCache.h @@ -1,5 +1,4 @@ -#ifndef GEOMETRYCACHE_H_ -#define GEOMETRYCACHE_H_ +#pragma once #include "cache.h" #include "memory.h" @@ -32,5 +31,3 @@ private: Cache cache; }; - -#endif diff --git a/src/Polygon2d.h b/src/Polygon2d.h index 294a0e86..cf28e74d 100644 --- a/src/Polygon2d.h +++ b/src/Polygon2d.h @@ -1,5 +1,4 @@ -#ifndef POLYGON2D_H_ -#define POLYGON2D_H_ +#pragma once #include "Geometry.h" #include "linalg.h" @@ -36,5 +35,3 @@ private: Outlines2d theoutlines; bool sanitized; }; - -#endif diff --git a/src/clipper-utils.h b/src/clipper-utils.h index c36c6531..02bbfea1 100644 --- a/src/clipper-utils.h +++ b/src/clipper-utils.h @@ -1,5 +1,4 @@ -#ifndef CLIPPER_UTILS_H_ -#define CLIPPER_UTILS_H_ +#pragma once #include "polyclipping/clipper.hpp" #include "Polygon2d.h" @@ -20,5 +19,3 @@ namespace ClipperUtils { Polygon2d *apply(const std::vector &polygons, ClipperLib::ClipType); Polygon2d *apply(const std::vector &pathsvector, ClipperLib::ClipType); }; - -#endif diff --git a/src/offsetnode.h b/src/offsetnode.h index 66bc52de..be651903 100644 --- a/src/offsetnode.h +++ b/src/offsetnode.h @@ -1,5 +1,4 @@ -#ifndef OFFSETNODE_H_ -#define OFFSETNODE_H_ +#pragma once #include "node.h" #include "visitor.h" @@ -19,5 +18,3 @@ public: double fn, fs, fa, delta, miter_limit; ClipperLib::JoinType join_type; }; - -#endif diff --git a/src/polyset-utils.h b/src/polyset-utils.h index 5d284f65..2bdaca03 100644 --- a/src/polyset-utils.h +++ b/src/polyset-utils.h @@ -1,5 +1,4 @@ -#ifndef POLYSET_UTILS_H_ -#define POLYSET_UTILS_H_ +#pragma once class Polygon2d; class PolySet; @@ -10,5 +9,3 @@ namespace PolysetUtils { void tessellate_faces(const PolySet &inps, PolySet &outps); }; - -#endif diff --git a/src/textnode.h b/src/textnode.h index c4c77a16..1cebd655 100644 --- a/src/textnode.h +++ b/src/textnode.h @@ -1,5 +1,4 @@ -#ifndef TEXTNODE_H_ -#define TEXTNODE_H_ +#pragma once #include "node.h" #include "visitor.h" @@ -28,5 +27,3 @@ private: FreetypeRenderer::Params params; friend TextModule; }; - -#endif