]> git.lyx.org Git - features.git/commitdiff
Use <cstdint> instead of <boost/cstdint.hpp>
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 17 Jun 2019 14:19:31 +0000 (16:19 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:33 +0000 (15:48 +0200)
This is mandated by C++11.

src/Encoding.cpp
src/frontends/qt4/GuiClipboard.h
src/support/Messages.cpp
src/support/strfwd.h
src/support/unicode.cpp

index ad380d78039d69f83ffa048bb14b3ed9a54c51b5..2379209d270cc25d80b63059377f12cc3cb9c5da 100644 (file)
 #include "support/textutils.h"
 #include "support/unicode.h"
 
-#include <boost/cstdint.hpp>
-
-#include <iterator>
 #include <algorithm>
+#include <cstdint>
+#include <iterator>
 #include <sstream>
 
 using namespace std;
@@ -703,7 +702,7 @@ void Encodings::read(FileName const & encfile, FileName const & symbolsfile)
                istringstream is(symbolslex.getString());
                // reading symbol directly does not work if
                // char_type == wchar_t.
-               boost::uint32_t tmp;
+               uint32_t tmp;
                if(!(is >> hex >> tmp))
                        break;
                symbol = tmp;
index 4514eb2830113691193732b0670bf607c20755ef..9ef7829de6caa1d8c8261a49d52fb1387cd1c5d6 100644 (file)
@@ -20,7 +20,7 @@
 #include <QObject>
 #include <QStringList>
 
-#include <boost/cstdint.hpp>
+#include <cstdint>
 
 namespace lyx {
 namespace frontend {
@@ -94,7 +94,7 @@ private:
        /// that can be stored in the clipboard
        CacheMimeData cache_;
        /// checksum for internal clipboard data (used on Mac)
-       boost::uint32_t checksum;
+       std::uint32_t checksum;
 };
 
 QString const lyxMimeType();
index 57c18d522e2afadf45539aa1fdb53df43409857a..94d34cabc12328a69333cc8ac983046c15f56278 100644 (file)
@@ -83,9 +83,8 @@
 
 #include "support/lassert.h"
 
-#include <boost/cstdint.hpp>
-
 #include <cerrno>
+#include <cstdint>
 #include <fstream>
 #include <utility>
 
@@ -94,7 +93,6 @@
 #endif
 
 using namespace std;
-using boost::uint32_t;
 
 namespace lyx {
 
index c7e9c55517d6eb4726244274cdbb0b79503bc9b5..eef3a83a0ce44a04eeb42ff55e0e57f45a8415ff 100644 (file)
@@ -23,13 +23,13 @@ namespace lyx { typedef wchar_t char_type; }
 
 #else
 
-#if defined(_MSC_VER) && (_MSC_VER >= 1600)
 #include <cstdint>
+
+#if defined(_MSC_VER) && (_MSC_VER >= 1600)
 namespace lyx { typedef uint32_t char_type; }
 #include "support/numpunct_lyx_char_type.h" // implementation for our char_type needed
 #else
-#include <boost/cstdint.hpp>
-namespace lyx { typedef boost::uint32_t char_type; }
+namespace lyx { typedef std::uint32_t char_type; }
 #endif
 
 #endif
index ecc415b2f351d8571f71184956f1a66becacd547..001ec948ae70cc34c1137df60fcdb0be493a49f9 100644 (file)
@@ -19,9 +19,8 @@
 
 #include <iconv.h>
 
-#include <boost/cstdint.hpp>
-
 #include <cerrno>
+#include <cstdint>
 #include <map>
 #include <ostream>
 //Needed in MSVC
@@ -136,7 +135,7 @@ int IconvProcessor::convert(char const * buf, size_t buflen,
                        for (size_t i = 0; i < buflen; ++i) {
                                // char may be signed, avoid output of
                                // something like 0xffffffc2
-                               boost::uint32_t const b =
+                               uint32_t const b =
                                        *reinterpret_cast<unsigned char const *>(buf + i);
                                lyxerr << " 0x" << (unsigned int)b;
                        }