Updated include guards to #pragma once

master
Marius Kintel 2014-05-22 22:26:46 -04:00
parent 6ed870b53a
commit db19afcf80
11 changed files with 11 additions and 46 deletions

View File

@ -23,8 +23,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* *
*/ */
#ifndef DRAWINGCALLBACK_H #pragma once
#define DRAWINGCALLBACK_H
#include <vector> #include <vector>
#include <math.h> #include <math.h>
@ -62,6 +61,3 @@ private:
return pow(1.0 - t, exp); return pow(1.0 - t, exp);
} }
}; };
#endif /* DRAWINGCALLBACK_H */

View File

@ -23,8 +23,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* *
*/ */
#ifndef FONTCACHE_H #pragma once
#define FONTCACHE_H
#include <map> #include <map>
#include <string> #include <string>
@ -96,5 +95,3 @@ private:
FT_Face find_face_in_path(std::string path, std::string font); FT_Face find_face_in_path(std::string path, std::string font);
}; };
#endif /* FONTCACHE_H */

View File

@ -1,5 +1,4 @@
#ifndef FONTLISTDIALOG_H_ #pragma once
#define FONTLISTDIALOG_H_
#include <QStandardItemModel> #include <QStandardItemModel>
@ -19,5 +18,3 @@ public:
private: private:
QStandardItemModel *model; QStandardItemModel *model;
}; };
#endif

View File

@ -23,8 +23,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* *
*/ */
#ifndef FREETYPERENDERER_H #pragma once
#define FREETYPERENDERER_H
#include <string> #include <string>
#include <vector> #include <vector>
@ -136,6 +135,3 @@ private:
static int outline_conic_to_func(const FT_Vector *c1, const FT_Vector *to, void *user); 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); static int outline_cubic_to_func(const FT_Vector *c1, const FT_Vector *c2, const FT_Vector *to, void *user);
}; };
#endif /* FREETYPERENDERER_H */

View File

@ -1,5 +1,4 @@
#ifndef GEOMETRY_H_ #pragma once
#define GEOMETRY_H_
#include <stddef.h> #include <stddef.h>
#include <string> #include <string>
@ -29,5 +28,3 @@ public:
protected: protected:
int convexity; int convexity;
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef GEOMETRYCACHE_H_ #pragma once
#define GEOMETRYCACHE_H_
#include "cache.h" #include "cache.h"
#include "memory.h" #include "memory.h"
@ -32,5 +31,3 @@ private:
Cache<std::string, cache_entry> cache; Cache<std::string, cache_entry> cache;
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef POLYGON2D_H_ #pragma once
#define POLYGON2D_H_
#include "Geometry.h" #include "Geometry.h"
#include "linalg.h" #include "linalg.h"
@ -36,5 +35,3 @@ private:
Outlines2d theoutlines; Outlines2d theoutlines;
bool sanitized; bool sanitized;
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef CLIPPER_UTILS_H_ #pragma once
#define CLIPPER_UTILS_H_
#include "polyclipping/clipper.hpp" #include "polyclipping/clipper.hpp"
#include "Polygon2d.h" #include "Polygon2d.h"
@ -20,5 +19,3 @@ namespace ClipperUtils {
Polygon2d *apply(const std::vector<const Polygon2d*> &polygons, ClipperLib::ClipType); Polygon2d *apply(const std::vector<const Polygon2d*> &polygons, ClipperLib::ClipType);
Polygon2d *apply(const std::vector<ClipperLib::Paths> &pathsvector, ClipperLib::ClipType); Polygon2d *apply(const std::vector<ClipperLib::Paths> &pathsvector, ClipperLib::ClipType);
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef OFFSETNODE_H_ #pragma once
#define OFFSETNODE_H_
#include "node.h" #include "node.h"
#include "visitor.h" #include "visitor.h"
@ -19,5 +18,3 @@ public:
double fn, fs, fa, delta, miter_limit; double fn, fs, fa, delta, miter_limit;
ClipperLib::JoinType join_type; ClipperLib::JoinType join_type;
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef POLYSET_UTILS_H_ #pragma once
#define POLYSET_UTILS_H_
class Polygon2d; class Polygon2d;
class PolySet; class PolySet;
@ -10,5 +9,3 @@ namespace PolysetUtils {
void tessellate_faces(const PolySet &inps, PolySet &outps); void tessellate_faces(const PolySet &inps, PolySet &outps);
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef TEXTNODE_H_ #pragma once
#define TEXTNODE_H_
#include "node.h" #include "node.h"
#include "visitor.h" #include "visitor.h"
@ -28,5 +27,3 @@ private:
FreetypeRenderer::Params params; FreetypeRenderer::Params params;
friend TextModule; friend TextModule;
}; };
#endif