[core] std::vector can be bracket-initialized

This commit is contained in:
Bruno de Oliveira Abinader
2017-07-19 18:25:29 +03:00
parent 5d4ed27068
commit 6c12de8d12
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -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() {