go to hell

and your stupid mess of C++ with Smalltalk language
This commit is contained in:
tildearrow 2022-06-24 13:39:50 -05:00
parent 01d2971b40
commit 0c480a3ea7

View file

@ -30,7 +30,8 @@ static NSArray *BuildAllowedFileTypes( const std::vector<std::string>& filterLis
// or this: NSString::stringWithUTF8String(typebuf);
// buildFilterList->addObject(thisType);
// really? did you have to make this mess?!
NSString *thisType = NSString::stringWithUTF8String(typebuf.c_str());
const char* typebufC=typebuf.c_str();
NSString *thisType = [NSString stringWithUTF8String:typebufC];
[buildFilterList addObject:thisType];
typebuf="";
} else if (j!='.' && j!='*') {
@ -39,7 +40,8 @@ static NSArray *BuildAllowedFileTypes( const std::vector<std::string>& filterLis
}
if (!typebuf.empty()) {
// I don't think this will work, but come on...
NSString *thisType = NSString::stringWithUTF8String(typebuf.c_str());
const char* typebufC=typebuf.c_str();
NSString *thisType = [NSString stringWithUTF8String:typebufC];
[buildFilterList addObject:thisType];
}
}