[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-27 5841240: Use NSNumber instead of BOOL (bug#39047)
From: |
Alan Third |
Subject: |
emacs-27 5841240: Use NSNumber instead of BOOL (bug#39047) |
Date: |
Thu, 9 Jan 2020 15:07:06 -0500 (EST) |
branch: emacs-27
commit 58412402959d8f88e230f95c5fc7de072e115140
Author: Väinö Järvelä <address@hidden>
Commit: Alan Third <address@hidden>
Use NSNumber instead of BOOL (bug#39047)
* src/nsfns.m (ns_set_represented_filename): Use correct type.
Copyright-paperwork-exempt: yes
---
src/nsfns.m | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nsfns.m b/src/nsfns.m
index 13ff67d..93d5a1e 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -493,11 +493,11 @@ ns_set_represented_filename (struct frame *f)
#if defined (NS_IMPL_COCOA) && defined (MAC_OS_X_VERSION_10_7)
/* Work around for Mach port leaks on macOS 10.15 (bug#38618). */
NSURL *fileURL = [NSURL fileURLWithPath:fstr isDirectory:NO];
- BOOL isUbiquitousItem = YES;
+ NSNumber *isUbiquitousItem = @YES;
[fileURL getResourceValue:(id *)&isUbiquitousItem
forKey:NSURLIsUbiquitousItemKey
error:nil];
- if (isUbiquitousItem)
+ if ([isUbiquitousItem boolValue])
fstr = @"";
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-27 5841240: Use NSNumber instead of BOOL (bug#39047),
Alan Third <=