Fixes error: two consecutive '[' tokens on g++ with objcpp files (#1246)
Applying MoAlyousef's PR. -erco
This commit is contained in:
parent
70a104131a
commit
8b8d92a313
@ -498,7 +498,7 @@ static char *prepareMacFilter(int count, const char *filter, char **patterns) {
|
||||
BOOL isdir = NO;
|
||||
[[NSFileManager defaultManager] fileExistsAtPath:filename isDirectory:&isdir];
|
||||
if (isdir) return YES;
|
||||
if ( fl_filename_match([filename fileSystemRepresentation], filter_pattern[ [nspopup indexOfSelectedItem] ]) ) return YES;
|
||||
if ( fl_filename_match([filename fileSystemRepresentation], filter_pattern[([nspopup indexOfSelectedItem])]) ) return YES;
|
||||
return NO;
|
||||
}
|
||||
- (BOOL)panel:(id)sender shouldEnableURL:(NSURL *)url
|
||||
|
||||
@ -2758,7 +2758,7 @@ static FLTextInputContext* fltextinputcontext_instance = nil;
|
||||
NSData *data = [pboard dataForType:UTF8_pasteboard_type];
|
||||
DragData = (char *)malloc([data length] + 1);
|
||||
[data getBytes:DragData length:[data length]];
|
||||
DragData[[data length]] = 0;
|
||||
DragData[([data length])] = 0;
|
||||
Fl_Screen_Driver::convert_crlf(DragData, strlen(DragData));
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user