[core] use #pragma once instead of ifdef include guards

This commit is contained in:
Konstantin Käfer
2016-05-25 21:14:18 +02:00
parent 6368403f43
commit e2bcea90fc
206 changed files with 211 additions and 829 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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