Fixes error: two consecutive '[' tokens on g++ with objcpp files (#1246)

Applying MoAlyousef's PR. -erco

(cherry picked from commit 8b8d92a313)
This commit is contained in:
Mohammed Alyousef
2025-04-06 01:05:39 +03:00
committed by Matthias Melcher
parent eb2df89625
commit f20215109e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 {