diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-07-01 11:51:54 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-07-01 12:38:33 +0200 |
commit | 77e784675687d13439a8104c97c5bb0a9ccd8b01 (patch) | |
tree | ac5fe39c7c1d0db0923fec2b00b56291ef0f548e /src/mbgl/tile | |
parent | da863c6e52f656bd35c3d3346093a24d747d0bbd (diff) | |
download | qtlocation-mapboxgl-77e784675687d13439a8104c97c5bb0a9ccd8b01.tar.gz |
[core] code style cleanups
- puts function definitions in a namespace ... {} rather than using namespace ...;
- remove trailing whitespace
- add trailing newline
- protect SQL statements from being formatted by clang-format
Diffstat (limited to 'src/mbgl/tile')
-rw-r--r-- | src/mbgl/tile/raster_tile.cpp | 4 | ||||
-rw-r--r-- | src/mbgl/tile/tile_worker.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mbgl/tile/raster_tile.cpp b/src/mbgl/tile/raster_tile.cpp index a0f172a017..2460aac8f9 100644 --- a/src/mbgl/tile/raster_tile.cpp +++ b/src/mbgl/tile/raster_tile.cpp @@ -9,7 +9,7 @@ #include <mbgl/util/worker.hpp> #include <mbgl/util/work_request.hpp> -using namespace mbgl; +namespace mbgl { RasterTile::RasterTile(const OverscaledTileID& id_, const style::UpdateParameters& parameters, @@ -67,3 +67,5 @@ void RasterTile::setNecessity(Necessity necessity) { void RasterTile::cancel() { workRequest.reset(); } + +} // namespace mbgl diff --git a/src/mbgl/tile/tile_worker.cpp b/src/mbgl/tile/tile_worker.cpp index c21a4a4ad7..fe75c86741 100644 --- a/src/mbgl/tile/tile_worker.cpp +++ b/src/mbgl/tile/tile_worker.cpp @@ -16,7 +16,7 @@ namespace mbgl { -using namespace mbgl::style; +using namespace style; TileWorker::TileWorker(OverscaledTileID id_, SpriteStore& spriteStore_, |