Minor change to adhere to CODE_STYLE.

This commit is contained in:
Philip Rideout
2020-10-12 11:15:37 -07:00
parent 03df97d0e3
commit 20abfec7d3

View File

@@ -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<StaticString, Filter> 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;