Minor change to adhere to CODE_STYLE.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user