summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authoradeshkp <adeshkp@users.noreply.github.com>2020-09-13 13:39:40 +0530
committerGitHub <noreply@github.com>2020-09-13 10:09:40 +0200
commit00e0733915741d7e945893d530a031cf7592082f (patch)
treeeda51678f124136a11b401b781eb4df602646d5c /widget
parent9eb8b61b8c30255bd3be8c67031e5f14bc1ab8a5 (diff)
downloadUXP-00e0733915741d7e945893d530a031cf7592082f.tar
UXP-00e0733915741d7e945893d530a031cf7592082f.tar.gz
UXP-00e0733915741d7e945893d530a031cf7592082f.tar.lz
UXP-00e0733915741d7e945893d530a031cf7592082f.tar.xz
UXP-00e0733915741d7e945893d530a031cf7592082f.zip
Fix usage of a macro in a cocoa widget (#1649)
* Issue #457 - Fix usage of a macro in a cocoa widget
Diffstat (limited to 'widget')
-rw-r--r--widget/cocoa/nsDragService.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/cocoa/nsDragService.mm b/widget/cocoa/nsDragService.mm
index b92db1b2a..c4d8e6ff0 100644
--- a/widget/cocoa/nsDragService.mm
+++ b/widget/cocoa/nsDragService.mm
@@ -222,7 +222,7 @@ nsDragService::ConstructDragImage(nsIDOMNode* aDOMNode,
bool
nsDragService::IsValidType(NSString* availableType, bool allowFileURL)
{
- NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
+ NS_OBJC_BEGIN_TRY_ABORT_BLOCK_RETURN;
// Prevent exposing fileURL for non-fileURL type.
// We need URL provided by dropped webloc file, but don't need file's URL.
@@ -234,7 +234,7 @@ nsDragService::IsValidType(NSString* availableType, bool allowFileURL)
return true;
- NS_OBJC_END_TRY_ABORT_BLOCK(false);
+ NS_OBJC_END_TRY_ABORT_BLOCK_RETURN(false);
}
NSString*