commit 84050268ee98453ebe0a8fe8dc55fae2c91e7fd5
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Fri Sep 30 16:50:09 2016 +0200

    Remove useless #include
    
    Including MathData.h in InsetMath.h is expensive and not required.
---
 src/lyxfind.cpp              |    1 +
 src/mathed/InsetMath.h       |    3 +--
 src/mathed/InsetMathBig.cpp  |    2 ++
 src/mathed/InsetMathDots.cpp |    1 +
 src/mathed/InsetMathNest.h   |    1 +
 5 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index 4d01547..38fcbfb 100644
--- a/src/lyxfind.cpp
+++ b/src/lyxfind.cpp
@@ -39,6 +39,7 @@
 #include "mathed/InsetMath.h"
 #include "mathed/InsetMathGrid.h"
 #include "mathed/InsetMathHull.h"
+#include "mathed/MathData.h"
 #include "mathed/MathStream.h"
 #include "mathed/MathSupport.h"
 
diff --git a/src/mathed/InsetMath.h b/src/mathed/InsetMath.h
index 3bab681..da84af1 100644
--- a/src/mathed/InsetMath.h
+++ b/src/mathed/InsetMath.h
@@ -13,8 +13,6 @@
 #ifndef MATH_INSET_H
 #define MATH_INSET_H
 
-#include "MathData.h"
-
 #include "insets/Inset.h"
 
 
@@ -84,6 +82,7 @@ class MathematicaStream;
 class MathStream;
 class WriteStream;
 
+class MathData;
 class MathMacroTemplate;
 class MathMacro;
 class Cursor;
diff --git a/src/mathed/InsetMathBig.cpp b/src/mathed/InsetMathBig.cpp
index 293ff8b..9c2f3bf 100644
--- a/src/mathed/InsetMathBig.cpp
+++ b/src/mathed/InsetMathBig.cpp
@@ -12,7 +12,9 @@
 
 #include "InsetMathBig.h"
 
+#include "Dimension.h"
 #include "LaTeXFeatures.h"
+
 #include "MathSupport.h"
 #include "MathStream.h"
 #include "MetricsInfo.h"
diff --git a/src/mathed/InsetMathDots.cpp b/src/mathed/InsetMathDots.cpp
index d13cdd9..b579964 100644
--- a/src/mathed/InsetMathDots.cpp
+++ b/src/mathed/InsetMathDots.cpp
@@ -13,6 +13,7 @@
 
 #include "InsetMathDots.h"
 
+#include "Dimension.h"
 #include "LaTeXFeatures.h"
 #include "MathStream.h"
 #include "MathSupport.h"
diff --git a/src/mathed/InsetMathNest.h b/src/mathed/InsetMathNest.h
index b9cc1f6..a10299e 100644
--- a/src/mathed/InsetMathNest.h
+++ b/src/mathed/InsetMathNest.h
@@ -13,6 +13,7 @@
 #define MATH_NESTINSET_H
 
 #include "InsetMath.h"
+#include "MathData.h"
 
 #include <map>
 

Reply via email to