From 20abfec7d3256f3437b402f10fa3bc909fc48388 Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Mon, 12 Oct 2020 11:15:37 -0700 Subject: [PATCH] Minor change to adhere to CODE_STYLE. --- libs/image/src/ImageSampler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/image/src/ImageSampler.cpp b/libs/image/src/ImageSampler.cpp index fbc7a0ea02..00385e9323 100644 --- a/libs/image/src/ImageSampler.cpp +++ b/libs/image/src/ImageSampler.cpp @@ -362,7 +362,7 @@ uint32_t getMipmapCount(const LinearImage& source) { Filter filterFromString(const char* rawname) { using namespace utils; - using namespace std; + using std::unordered_map; static const unordered_map map = { { "BOX", Filter::BOX}, { "NEAREST", Filter::NEAREST}, @@ -373,7 +373,7 @@ Filter filterFromString(const char* rawname) { { "LANCZOS", Filter::LANCZOS}, { "MINIMUM", Filter::MINIMUM}, }; - string name = rawname; + std::string name = rawname; for (auto& c: name) { c = toupper((unsigned char)c); } auto iter = map.find(StaticString::make(name.c_str(), name.size())); return iter == map.end() ? Filter::DEFAULT : iter->second;