瀏覽代碼

Optimized includes

Chlumsky 2 年之前
父節點
當前提交
00d404686c
共有 12 個文件被更改,包括 11 次插入11 次删除
  1. 1 0
      .gitignore
  2. 1 1
      core/BitmapRef.hpp
  3. 2 0
      core/EdgeHolder.cpp
  4. 3 0
      core/Vector2.cpp
  5. 0 3
      core/Vector2.h
  6. 0 1
      core/arithmetics.hpp
  7. 1 1
      core/edge-coloring.cpp
  8. 1 1
      core/generator-config.h
  9. 0 1
      core/shape-description.h
  10. 1 1
      ext/import-font.h
  11. 1 1
      ext/import-svg.h
  12. 0 1
      ext/save-png.cpp

+ 1 - 0
.gitignore

@@ -24,6 +24,7 @@
 /bin/msdfgen
 output.png
 render.png
+CMakeUserPresets.json
 out/
 /build_xcode/
 /cmake-gen.bat

+ 1 - 1
core/BitmapRef.hpp

@@ -1,7 +1,7 @@
 
 #pragma once
 
-#include <cstdlib>
+#include <cstddef>
 
 namespace msdfgen {
 

+ 2 - 0
core/EdgeHolder.cpp

@@ -1,6 +1,8 @@
 
 #include "EdgeHolder.h"
 
+#include <cstddef>
+
 namespace msdfgen {
 
 void EdgeHolder::swap(EdgeHolder &a, EdgeHolder &b) {

+ 3 - 0
core/Vector2.cpp

@@ -1,6 +1,9 @@
 
 #include "Vector2.h"
 
+#include <cstddef>
+#include <cmath>
+
 namespace msdfgen {
 
 Vector2::Vector2(double val) : x(val), y(val) { }

+ 0 - 3
core/Vector2.h

@@ -1,9 +1,6 @@
 
 #pragma once
 
-#include <cstdlib>
-#include <cmath>
-
 namespace msdfgen {
 
 /**

+ 0 - 1
core/arithmetics.hpp

@@ -1,7 +1,6 @@
 
 #pragma once
 
-#include <cstdlib>
 #include <cmath>
 
 namespace msdfgen {

+ 1 - 1
core/edge-coloring.cpp

@@ -1,10 +1,10 @@
 
 #include "edge-coloring.h"
 
-#include <cstdlib>
 #include <cmath>
 #include <cstring>
 #include <cfloat>
+#include <vector>
 #include <queue>
 #include "arithmetics.hpp"
 

+ 1 - 1
core/generator-config.h

@@ -1,7 +1,7 @@
 
 #pragma once
 
-#include <cstdlib>
+#include <cstddef>
 #include "BitmapRef.hpp"
 
 #ifndef MSDFGEN_PUBLIC

+ 0 - 1
core/shape-description.h

@@ -1,7 +1,6 @@
 
 #pragma once
 
-#include <cstdlib>
 #include <cstdio>
 #include "Shape.h"
 

+ 1 - 1
ext/import-font.h

@@ -1,7 +1,7 @@
 
 #pragma once
 
-#include <cstdlib>
+#include <cstddef>
 #include "../core/Shape.h"
 
 namespace msdfgen {

+ 1 - 1
ext/import-svg.h

@@ -1,7 +1,7 @@
 
 #pragma once
 
-#include <cstdlib>
+#include <cstddef>
 #include "../core/Shape.h"
 
 namespace msdfgen {

+ 0 - 1
ext/save-png.cpp

@@ -1,7 +1,6 @@
 
 #include "save-png.h"
 
-#include <cstdlib>
 #include <cstdio>
 #include <cstring>
 #include <vector>