[core] use #pragma once instead of ifdef include guards
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#ifndef MBGL_ALGORITHM_COVERED_BY_CHILDREN
|
||||
#define MBGL_ALGORITHM_COVERED_BY_CHILDREN
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/tile/tile_id.hpp>
|
||||
|
||||
@@ -30,5 +29,3 @@ bool coveredByChildren(const UnwrappedTileID& id, const Container& container) {
|
||||
|
||||
} // namespace algorithm
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef MBGL_ALGORITHM_GENERATE_CLIP_IDS
|
||||
#define MBGL_ALGORITHM_GENERATE_CLIP_IDS
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/tile/tile_id.hpp>
|
||||
#include <mbgl/util/clip_id.hpp>
|
||||
@@ -34,5 +33,3 @@ public:
|
||||
|
||||
} // namespace algorithm
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef MBGL_ALGORITHM_GENERATE_CLIP_IDS_IMPL
|
||||
#define MBGL_ALGORITHM_GENERATE_CLIP_IDS_IMPL
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/algorithm/generate_clip_ids.hpp>
|
||||
#include <mbgl/util/math.hpp>
|
||||
@@ -77,5 +76,3 @@ void ClipIDGenerator::update(Renderables& renderables) {
|
||||
|
||||
} // namespace algorithm
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef MBGL_ALGORITHM_UPDATE_RENDERABLES
|
||||
#define MBGL_ALGORITHM_UPDATE_RENDERABLES
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -11,5 +10,3 @@ void updateRenderables(Layer& layer, const uint8_t z);
|
||||
|
||||
} // namespace algorithm
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef MBGL_ALGORITHM_UPDATE_RENDERABLES_IMPL
|
||||
#define MBGL_ALGORITHM_UPDATE_RENDERABLES_IMPL
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/algorithm/update_renderables.hpp>
|
||||
#include <mbgl/tile/tile_id.hpp>
|
||||
@@ -89,5 +88,3 @@ std::map<UnwrappedTileID, Renderable> updateRenderables(const DataTiles& dataTil
|
||||
|
||||
} // namespace algorithm
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user