[LyX/master] Move <algorithm> from DocIterator.h

Pavel Sanda sanda at lyx.org
Wed Oct 14 10:34:11 UTC 2020


commit da8b5de973f8c19a867154dd29a8e25aa2f2e2ac
Author: Pavel Sanda <sanda at lyx.org>
Date:   Wed Oct 14 13:01:30 2020 +0200

    Move <algorithm> from DocIterator.h
---
 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, 11 insertions(+), 1 deletions(-)

diff --git a/src/DocIterator.h b/src/DocIterator.h
index 69930fc..a3786c4 100644
--- a/src/DocIterator.h
+++ b/src/DocIterator.h
@@ -15,7 +15,6 @@
 #include "CursorSlice.h"
 
 #include <vector>
-#include <algorithm>
 
 namespace lyx {
 
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 9cd9b8b..d69fa55 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -66,6 +66,7 @@
 #include "support/textutils.h"
 #include "output_docbook.h"
 
+#include <algorithm>
 #include <atomic>
 #include <sstream>
 #include <vector>
diff --git a/src/frontends/qt/FindAndReplace.cpp b/src/frontends/qt/FindAndReplace.cpp
index af2bbbb..4d14bcf 100644
--- a/src/frontends/qt/FindAndReplace.cpp
+++ b/src/frontends/qt/FindAndReplace.cpp
@@ -44,6 +44,8 @@
 #include <QLineEdit>
 #include <QMenu>
 
+#include <algorithm>
+
 using namespace std;
 using namespace lyx::support;
 
diff --git a/src/frontends/qt/GuiBox.cpp b/src/frontends/qt/GuiBox.cpp
index 298009d..a722ed3 100644
--- a/src/frontends/qt/GuiBox.cpp
+++ b/src/frontends/qt/GuiBox.cpp
@@ -32,6 +32,8 @@
 #include <QLineEdit>
 #include <QPushButton>
 
+#include <algorithm>
+
 #ifdef IN
 #undef IN
 #endif
diff --git a/src/frontends/qt/GuiCharacter.cpp b/src/frontends/qt/GuiCharacter.cpp
index d1d4336..3de8338 100644
--- a/src/frontends/qt/GuiCharacter.cpp
+++ b/src/frontends/qt/GuiCharacter.cpp
@@ -41,6 +41,8 @@
 #include <QSettings>
 #include <QVariant>
 
+#include <algorithm>
+
 using namespace std;
 
 namespace lyx {
diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp
index d776ad5..9d3643d 100644
--- a/src/frontends/qt/GuiDocument.cpp
+++ b/src/frontends/qt/GuiDocument.cpp
@@ -83,6 +83,7 @@
 #include <QTextBoundaryFinder>
 #include <QTextCursor>
 
+#include <algorithm>
 #include <sstream>
 #include <vector>
 
diff --git a/src/frontends/qt/GuiRef.cpp b/src/frontends/qt/GuiRef.cpp
index 8583d0c..83946c2 100644
--- a/src/frontends/qt/GuiRef.cpp
+++ b/src/frontends/qt/GuiRef.cpp
@@ -39,6 +39,8 @@
 #include <QCloseEvent>
 #include <QHeaderView>
 
+#include <algorithm>
+
 using namespace std;
 using namespace lyx::support;
 
diff --git a/src/xml.cpp b/src/xml.cpp
index dda39a4..e50e559 100644
--- a/src/xml.cpp
+++ b/src/xml.cpp
@@ -28,6 +28,7 @@
 #include "support/lstrings.h"
 #include "support/textutils.h"
 
+#include <algorithm>
 #include <atomic>
 #include <map>
 #include <functional>


More information about the lyx-cvs mailing list