diff options
| author | Väinö Järvelä | 2020-01-09 08:01:59 +0200 |
|---|---|---|
| committer | Alan Third | 2020-01-09 20:04:27 +0000 |
| commit | 58412402959d8f88e230f95c5fc7de072e115140 (patch) | |
| tree | 464b3fa4581b60f69e1575a60908f1a7a5fae8f8 /src | |
| parent | beec9f64a50c8c8f8bfd1b85d9c546ff25b361ba (diff) | |
| download | emacs-58412402959d8f88e230f95c5fc7de072e115140.tar.gz emacs-58412402959d8f88e230f95c5fc7de072e115140.zip | |
Use NSNumber instead of BOOL (bug#39047)
* src/nsfns.m (ns_set_represented_filename): Use correct type.
Copyright-paperwork-exempt: yes
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsfns.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsfns.m b/src/nsfns.m index 13ff67df092..93d5a1e9488 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -493,11 +493,11 @@ ns_set_represented_filename (struct frame *f) | |||
| 493 | #if defined (NS_IMPL_COCOA) && defined (MAC_OS_X_VERSION_10_7) | 493 | #if defined (NS_IMPL_COCOA) && defined (MAC_OS_X_VERSION_10_7) |
| 494 | /* Work around for Mach port leaks on macOS 10.15 (bug#38618). */ | 494 | /* Work around for Mach port leaks on macOS 10.15 (bug#38618). */ |
| 495 | NSURL *fileURL = [NSURL fileURLWithPath:fstr isDirectory:NO]; | 495 | NSURL *fileURL = [NSURL fileURLWithPath:fstr isDirectory:NO]; |
| 496 | BOOL isUbiquitousItem = YES; | 496 | NSNumber *isUbiquitousItem = @YES; |
| 497 | [fileURL getResourceValue:(id *)&isUbiquitousItem | 497 | [fileURL getResourceValue:(id *)&isUbiquitousItem |
| 498 | forKey:NSURLIsUbiquitousItemKey | 498 | forKey:NSURLIsUbiquitousItemKey |
| 499 | error:nil]; | 499 | error:nil]; |
| 500 | if (isUbiquitousItem) | 500 | if ([isUbiquitousItem boolValue]) |
| 501 | fstr = @""; | 501 | fstr = @""; |
| 502 | #endif | 502 | #endif |
| 503 | 503 | ||