[core] Fix google-default-arguments errors in header files
As reported by clang-tidy-8.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 }, {}, {} });
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user