From 8af747c9d9f4d5f496313256e044e8a5b99147f4 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sat, 24 Oct 2020 12:06:17 +0200 Subject: [PATCH] Revert da8b5de97 because of MSVC 2017. In GCC `min` is defined via including . --- src/DocIterator.h | 1 + src/Paragraph.cpp | 1 - src/frontends/qt/FindAndReplace.cpp | 2 -- src/frontends/qt/GuiBox.cpp | 2 -- src/frontends/qt/GuiCharacter.cpp | 2 -- src/frontends/qt/GuiDocument.cpp | 1 - src/frontends/qt/GuiRef.cpp | 2 -- src/xml.cpp | 1 - 8 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/DocIterator.h b/src/DocIterator.h index a3786c4401..344445b149 100644 --- a/src/DocIterator.h +++ b/src/DocIterator.h @@ -15,6 +15,7 @@ #include "CursorSlice.h" #include +#include // std::min in MSVC 2017 namespace lyx { diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 98e051445e..6578e2a19c 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -61,7 +61,6 @@ #include "support/lstrings.h" #include "support/textutils.h" -#include #include #include #include diff --git a/src/frontends/qt/FindAndReplace.cpp b/src/frontends/qt/FindAndReplace.cpp index 4d14bcfccb..af2bbbbea3 100644 --- a/src/frontends/qt/FindAndReplace.cpp +++ b/src/frontends/qt/FindAndReplace.cpp @@ -44,8 +44,6 @@ #include #include -#include - using namespace std; using namespace lyx::support; diff --git a/src/frontends/qt/GuiBox.cpp b/src/frontends/qt/GuiBox.cpp index a722ed3d61..298009da1b 100644 --- a/src/frontends/qt/GuiBox.cpp +++ b/src/frontends/qt/GuiBox.cpp @@ -32,8 +32,6 @@ #include #include -#include - #ifdef IN #undef IN #endif diff --git a/src/frontends/qt/GuiCharacter.cpp b/src/frontends/qt/GuiCharacter.cpp index 96e8d736ff..cfa481c832 100644 --- a/src/frontends/qt/GuiCharacter.cpp +++ b/src/frontends/qt/GuiCharacter.cpp @@ -40,8 +40,6 @@ #include #include -#include - using namespace std; namespace lyx { diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp index d691cc7bd8..7e1ec248b1 100644 --- a/src/frontends/qt/GuiDocument.cpp +++ b/src/frontends/qt/GuiDocument.cpp @@ -82,7 +82,6 @@ #include #include -#include #include #include diff --git a/src/frontends/qt/GuiRef.cpp b/src/frontends/qt/GuiRef.cpp index b0aaba6a87..83be347737 100644 --- a/src/frontends/qt/GuiRef.cpp +++ b/src/frontends/qt/GuiRef.cpp @@ -40,8 +40,6 @@ #include #include -#include - using namespace std; using namespace lyx::support; diff --git a/src/xml.cpp b/src/xml.cpp index e50e55972b..dda39a4f3f 100644 --- a/src/xml.cpp +++ b/src/xml.cpp @@ -28,7 +28,6 @@ #include "support/lstrings.h" #include "support/textutils.h" -#include #include #include #include