diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-20 12:38:09 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-23 20:05:40 +0200 |
commit | 76b99eb8e8f0138a1020b01e45bf8fd859051b1c (patch) | |
tree | ede19005391751d4e3872a2d4281598ffa2c73d3 | |
parent | 23a248eacd629cd1454dd162e9bb6e7e4abe4da6 (diff) | |
download | qtlocation-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.cpp | 7 | ||||
-rw-r--r-- | src/mbgl/style/expression/in.cpp | 3 |
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 { |