diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-04-03 12:27:14 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-04-05 11:49:17 +0200 |
commit | 3ceabcd3ec91dbd9458d3c5b78fb12c3182636e1 (patch) | |
tree | b8be2ac790afce844178a314b42683ab9d06f744 /src/mbgl/util | |
parent | d7aaf83421261087a99d18d92eca9637c1bf72f8 (diff) | |
download | qtlocation-mapboxgl-3ceabcd3ec91dbd9458d3c5b78fb12c3182636e1.tar.gz |
[core] clang-tidy fixes
Diffstat (limited to 'src/mbgl/util')
-rw-r--r-- | src/mbgl/util/string.cpp | 2 | ||||
-rw-r--r-- | src/mbgl/util/tile_cover.cpp | 4 | ||||
-rw-r--r-- | src/mbgl/util/tile_cover_impl.cpp | 4 |
3 files changed, 4 insertions, 6 deletions
diff --git a/src/mbgl/util/string.cpp b/src/mbgl/util/string.cpp index 2f737e7436..5d3e44bff6 100644 --- a/src/mbgl/util/string.cpp +++ b/src/mbgl/util/string.cpp @@ -78,7 +78,7 @@ std::string toPaddedHex(T x) { return result; } -} +} // namespace std::string toHex(size_t value) { return toPaddedHex(value); diff --git a/src/mbgl/util/tile_cover.cpp b/src/mbgl/util/tile_cover.cpp index 7979c550a9..5189b79f26 100644 --- a/src/mbgl/util/tile_cover.cpp +++ b/src/mbgl/util/tile_cover.cpp @@ -237,9 +237,7 @@ TileCover::TileCover(const Geometry<double>& geom, int32_t z, bool project/* = t : impl( std::make_unique<TileCover::Impl>(z, geom, project)) { } -TileCover::~TileCover() { - -} +TileCover::~TileCover() = default; optional<UnwrappedTileID> TileCover::next() { return impl->next(); diff --git a/src/mbgl/util/tile_cover_impl.cpp b/src/mbgl/util/tile_cover_impl.cpp index f783dfc4bd..e7181eeb5f 100644 --- a/src/mbgl/util/tile_cover_impl.cpp +++ b/src/mbgl/util/tile_cover_impl.cpp @@ -3,8 +3,8 @@ #include <functional> #include <cmath> -#include <assert.h> -#include <limits.h> +#include <cassert> +#include <climits> #include <algorithm> namespace mbgl { |