mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-26 23:01:05 +08:00
ios: Fix Chromium banned warning about NULL.
Change-Id: I29eefb067b171fb3d8ef9fa93c3bb146a206c9ce Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2166724 Commit-Queue: Justin Cohen <justincohen@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
17a515d33d
commit
be57546fea
@ -33,6 +33,7 @@
|
||||
#include <type_traits>
|
||||
#include <typeinfo>
|
||||
|
||||
#include "base/bit_cast.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
#include "build/build_config.h"
|
||||
@ -279,7 +280,7 @@ id ObjcExceptionPreprocessor(id exception) {
|
||||
if (!imp || imp == _objc_msgForward) {
|
||||
LOG(WARNING) << "Unable to find -[UIGestureEnvironment "
|
||||
"_deliverEvent:toGestureRecognizers:usingBlock:]";
|
||||
return reinterpret_cast<IMP>(NULL);
|
||||
return bit_cast<IMP>(nullptr); // IMP is a function pointer type.
|
||||
}
|
||||
return imp;
|
||||
}();
|
||||
|
Loading…
x
Reference in New Issue
Block a user