[core] Fix google-default-arguments errors in header files

As reported by clang-tidy-8.
This commit is contained in:
Thiago Marcos P. Santos
2020-03-27 18:30:35 +02:00
parent c92be2965c
commit 7751e4be76
9 changed files with 22 additions and 21 deletions

View File

@@ -43,9 +43,8 @@ public:
virtual void reduceMemoryUsage() = 0;
public:
virtual std::unique_ptr<OffscreenTexture>
createOffscreenTexture(Size,
TextureChannelDataType = TextureChannelDataType::UnsignedByte) = 0;
virtual std::unique_ptr<OffscreenTexture> createOffscreenTexture(Size, TextureChannelDataType) = 0;
public:
// Creates an empty texture with the specified dimensions.
Texture createTexture(const Size size,

View File

@@ -140,7 +140,8 @@ void RenderHillshadeLayer::render(PaintParameters& parameters) {
assert(bucket.dem);
const uint16_t stride = bucket.getDEMData().stride;
const uint16_t tilesize = bucket.getDEMData().dim;
auto view = parameters.context.createOffscreenTexture({ tilesize, tilesize });
auto view = parameters.context.createOffscreenTexture({tilesize, tilesize},
gfx::TextureChannelDataType::UnsignedByte);
auto renderPass = parameters.encoder->createRenderPass(
"hillshade prepare", { *view, Color{ 0.0f, 0.0f, 0.0f, 0.0f }, {}, {} });

View File

@@ -46,11 +46,11 @@ FeatureExtensionValue getLeaves(std::shared_ptr<style::GeoJSONData> clusterData,
static_cast<std::uint32_t>(*limit),
static_cast<std::uint32_t>(*offset));
}
return clusterData->getLeaves(clusterID, static_cast<std::uint32_t>(*limit));
return clusterData->getLeaves(clusterID, static_cast<std::uint32_t>(*limit), 0u);
}
}
return clusterData->getLeaves(clusterID);
return clusterData->getLeaves(clusterID, 10u, 0u);
}
// NOLINTNEXTLINE(performance-unnecessary-value-param)