summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-20 12:38:09 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-23 20:05:40 +0200
commit76b99eb8e8f0138a1020b01e45bf8fd859051b1c (patch)
treeede19005391751d4e3872a2d4281598ffa2c73d3
parent23a248eacd629cd1454dd162e9bb6e7e4abe4da6 (diff)
downloadqtlocation-mapboxgl-76b99eb8e8f0138a1020b01e45bf8fd859051b1c.tar.gz
[core] Fix modernize-deprecated-headers errors
As reported by clang-tidy-8.
-rw-r--r--platform/default/src/mbgl/util/monotonic_timer.cpp7
-rw-r--r--src/mbgl/style/expression/in.cpp3
2 files changed, 6 insertions, 4 deletions
diff --git a/platform/default/src/mbgl/util/monotonic_timer.cpp b/platform/default/src/mbgl/util/monotonic_timer.cpp
index 43c2ce6717..55184f4465 100644
--- a/platform/default/src/mbgl/util/monotonic_timer.cpp
+++ b/platform/default/src/mbgl/util/monotonic_timer.cpp
@@ -1,7 +1,8 @@
-#include <assert.h>
-#include <chrono>
#include <mbgl/util/monotonic_timer.hpp>
+#include <cassert>
+#include <chrono>
+
namespace mbgl {
namespace util {
@@ -21,4 +22,4 @@ std::chrono::duration<double> MonotonicTimer::now() {
}
} // namespace util
-} // namespace mbgl \ No newline at end of file
+} // namespace mbgl
diff --git a/src/mbgl/style/expression/in.cpp b/src/mbgl/style/expression/in.cpp
index f77a0b7f91..6413b03050 100644
--- a/src/mbgl/style/expression/in.cpp
+++ b/src/mbgl/style/expression/in.cpp
@@ -1,9 +1,10 @@
-#include <string.h>
#include <mbgl/style/conversion_impl.hpp>
#include <mbgl/style/expression/in.hpp>
#include <mbgl/style/expression/type.hpp>
#include <mbgl/util/string.hpp>
+#include <cstring>
+
namespace mbgl {
namespace style {
namespace expression {