go to hell
and your stupid mess of C++ with Smalltalk language
This commit is contained in:
parent
01d2971b40
commit
0c480a3ea7
6
extern/nfd-modified/src/nfd_cocoa.mm
vendored
6
extern/nfd-modified/src/nfd_cocoa.mm
vendored
|
@ -30,7 +30,8 @@ static NSArray *BuildAllowedFileTypes( const std::vector<std::string>& filterLis
|
||||||
// or this: NSString::stringWithUTF8String(typebuf);
|
// or this: NSString::stringWithUTF8String(typebuf);
|
||||||
// buildFilterList->addObject(thisType);
|
// buildFilterList->addObject(thisType);
|
||||||
// really? did you have to make this mess?!
|
// 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];
|
[buildFilterList addObject:thisType];
|
||||||
typebuf="";
|
typebuf="";
|
||||||
} else if (j!='.' && j!='*') {
|
} else if (j!='.' && j!='*') {
|
||||||
|
@ -39,7 +40,8 @@ static NSArray *BuildAllowedFileTypes( const std::vector<std::string>& filterLis
|
||||||
}
|
}
|
||||||
if (!typebuf.empty()) {
|
if (!typebuf.empty()) {
|
||||||
// I don't think this will work, but come on...
|
// 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];
|
[buildFilterList addObject:thisType];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue