From: Jean-Marc Lasgouttes Date: Fri, 30 Sep 2016 14:50:09 +0000 (+0200) Subject: Remove useless #include X-Git-Tag: 2.3.0alpha1~893 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=84050268ee98453ebe0a8fe8dc55fae2c91e7fd5;p=features.git Remove useless #include Including MathData.h in InsetMath.h is expensive and not required. --- diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 4d01547aa2..38fcbfb4ec 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 3bab681df8..da84af1010 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 293ff8b80d..9c2f3bff5b 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 d13cdd902f..b579964351 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 b9cc1f66d4..a10299e0fd 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