]> git.lyx.org Git - lyx.git/commitdiff
Patch to please gcc 4.3. Less bloat in the include headers means that
authorJosé Matox <jamatos@lyx.org>
Thu, 7 Feb 2008 17:04:06 +0000 (17:04 +0000)
committerJosé Matox <jamatos@lyx.org>
Thu, 7 Feb 2008 17:04:06 +0000 (17:04 +0000)
we need to include explicitly some header files now.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22846 a592a061-630c-0410-9148-cb99ea01b6c8

13 files changed:
src/BufferView.cpp
src/Font.cpp
src/boost.cpp
src/frontends/qt4/GuiAlert.cpp
src/frontends/qt4/TocModel.cpp
src/graphics/GraphicsParams.cpp
src/insets/InsetBibtex.cpp
src/insets/InsetTabular.cpp
src/mathed/MathData.cpp
src/mathed/MathExtern.cpp
src/mathed/MathStream.cpp
src/support/docstream.cpp
src/support/minizip/zipunzip.cpp

index 4997d458da49e86a26a62f40f8105b51fc179351..5870b0476c2bb9df485724da0c3f14815f952484 100644 (file)
@@ -113,7 +113,7 @@ bool findNextInset(DocIterator & dit, vector<InsetCode> const & codes,
        while (tmpdit) {
                Inset const * inset = tmpdit.nextInset();
                if (inset
-                   && find(codes.begin(), codes.end(), inset->lyxCode()) != codes.end()
+                   && std::find(codes.begin(), codes.end(), inset->lyxCode()) != codes.end()
                    && (contents.empty() ||
                    static_cast<InsetCommand const *>(inset)->getFirstNonOptParam() == contents)) {
                        dit = tmpdit;
@@ -139,7 +139,7 @@ bool findInset(DocIterator & dit, vector<InsetCode> const & codes,
        if (same_content) {
                Inset const * inset = tmpdit.nextInset();
                if (inset
-                   && find(codes.begin(), codes.end(), inset->lyxCode()) != codes.end()) {
+                   && std::find(codes.begin(), codes.end(), inset->lyxCode()) != codes.end()) {
                        contents = static_cast<InsetCommand const *>(inset)->getFirstNonOptParam();
                }
        }
@@ -1563,7 +1563,7 @@ void BufferView::gotoLabel(docstring const & label)
        for (InsetIterator it = inset_iterator_begin(buffer_.inset()); it; ++it) {
                vector<docstring> labels;
                it->getLabelList(buffer_, labels);
-               if (find(labels.begin(), labels.end(), label) != labels.end()) {
+               if (std::find(labels.begin(), labels.end(), label) != labels.end()) {
                        setCursor(it);
                        showCursor();
                        return;
index 2b39813c518a1d6f8531b42df50f8cc961ffa183..39b78be01d5f11fae28a56ef2b516c1866b9f8f3 100644 (file)
@@ -31,6 +31,8 @@
 #include "support/gettext.h"
 #include "support/lstrings.h"
 
+#include <cstring>
+
 using namespace std;
 using namespace lyx::support;
 
index b255e608850bc0d8ae7f7f171a0c65a5db10293e..9d2d2b8aa247d4d29753b6c4434f368b6a96b5b8 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <exception>
 #include <iomanip>
+#include <iostream>
 
 using namespace std;
 using lyx::lyxerr;
index ec904e96500fcdc218676f99fdf3634da34b5f41..b53f20f738524fdf452db0b8a7ae58c0918e4788 100644 (file)
@@ -30,6 +30,7 @@
 #include <QInputDialog>
 
 #include <iomanip>
+#include <iostream>
 
 using namespace std;
 using namespace lyx::support;
index 287d7fab79aeba4e8eead68d92a3f044e26d53bd..2f8fadc5039b8e40e7ab144f3f52272a003856d7 100644 (file)
@@ -16,6 +16,7 @@
 #include "support/debug.h"
 
 #include <boost/assert.hpp>
+#include <climits>
 
 using namespace std;
 
index e5c9b3d24f75fb4302737ff6307076159b552b5e..0b2fbb2c1457a0acff2cdcd519c9e6ed889eb3ba 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "Length.h"
 
+#include <cstdlib>
 #include <sstream>
 
 using namespace std;
index f8cc990cf97a0b664d5391a1141d25d3b2af3f56..e80e839691408b0bc9640911f221caf3e2ee6df7 100644 (file)
@@ -37,6 +37,7 @@
 #include "support/textutils.h"
 
 #include <boost/tokenizer.hpp>
+#include <limits>
 
 using namespace std;
 using namespace lyx::support;
index 2908f2671b66865f8ada4ca3a1f222a75058d536..9546aa350152e3d9636ba0e6f45ea2a1e52b56dd 100644 (file)
@@ -61,6 +61,7 @@
 #include <sstream>
 #include <iostream>
 #include <limits>
+#include <cstring>
 
 using namespace std;
 using namespace lyx::support;
index 33446a4aa3f86ae576c92d0bf1c95af3852ce791..ec5c443f317dec79efd7f2cc0e9f3b84457f32c1 100644 (file)
@@ -37,6 +37,8 @@
 #include <boost/assert.hpp>
 #include <boost/next_prior.hpp>
 
+#include <cstdlib>
+
 using namespace std;
 
 namespace lyx {
index 42cfc311959c5f54f4eae15e6e476520e84c4761..0895dcadeeae323f40f8fffb75c607fbbe7b352d 100644 (file)
@@ -43,6 +43,7 @@
 #include <algorithm>
 #include <sstream>
 #include <fstream>
+#include <memory>
 
 using namespace std;
 using namespace lyx::support;
index b0a842f209fdfe140be456ec97ebecde3b057438..295b1d77d5b9dd4a6a03de31dac9679f75f0d6dc 100644 (file)
@@ -20,6 +20,7 @@
 #include "support/docstring.h"
 
 #include <algorithm>
+#include <cstring>
 #include <ostream>
 
 using namespace std;
index 82ec8dc54d270e25a9b85381db0599a647426abb..df3d031a167feb4834069180ecbbf16bd8775cd9 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <cerrno>
 #include <cstdio>
+#include <cstring>
 #include <iconv.h>
 #include <locale>
 
index 2c69453e6a7f8b1367104573c20d8bc212417f35..17d37ccacfbbe6a46e56663eee0f7f1be7a5a653 100644 (file)
@@ -52,6 +52,8 @@
 
 #include <config.h>
 
+#include <cstdlib>
+#include <cstring>
 #include <string>
 #include <vector>
 #include <utility>