[core] std::vector can be bracket-initialized
This commit is contained in:
@@ -61,11 +61,11 @@ RenderImageSource::queryRenderedFeatures(const ScreenLineString&,
|
||||
const TransformState&,
|
||||
const RenderStyle&,
|
||||
const RenderedQueryOptions&) const {
|
||||
return std::unordered_map<std::string, std::vector<Feature>>();
|
||||
return std::unordered_map<std::string, std::vector<Feature>> {};
|
||||
}
|
||||
|
||||
std::vector<Feature> RenderImageSource::querySourceFeatures(const SourceQueryOptions&) const {
|
||||
return std::vector<Feature>();
|
||||
return {};
|
||||
}
|
||||
|
||||
void RenderImageSource::update(Immutable<style::Source::Impl> baseImpl_,
|
||||
|
||||
@@ -73,11 +73,11 @@ RenderRasterSource::queryRenderedFeatures(const ScreenLineString&,
|
||||
const TransformState&,
|
||||
const RenderStyle&,
|
||||
const RenderedQueryOptions&) const {
|
||||
return std::unordered_map<std::string, std::vector<Feature>>();
|
||||
return std::unordered_map<std::string, std::vector<Feature>> {};
|
||||
}
|
||||
|
||||
std::vector<Feature> RenderRasterSource::querySourceFeatures(const SourceQueryOptions&) const {
|
||||
return std::vector<Feature>();
|
||||
return {};
|
||||
}
|
||||
|
||||
void RenderRasterSource::onLowMemory() {
|
||||
|
||||
Reference in New Issue
Block a user