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:
Justin Cohen 2020-04-25 22:53:51 -04:00 committed by Commit Bot
parent 17a515d33d
commit be57546fea

View File

@ -33,6 +33,7 @@
#include <type_traits> #include <type_traits>
#include <typeinfo> #include <typeinfo>
#include "base/bit_cast.h"
#include "base/logging.h" #include "base/logging.h"
#include "base/strings/sys_string_conversions.h" #include "base/strings/sys_string_conversions.h"
#include "build/build_config.h" #include "build/build_config.h"
@ -279,7 +280,7 @@ id ObjcExceptionPreprocessor(id exception) {
if (!imp || imp == _objc_msgForward) { if (!imp || imp == _objc_msgForward) {
LOG(WARNING) << "Unable to find -[UIGestureEnvironment " LOG(WARNING) << "Unable to find -[UIGestureEnvironment "
"_deliverEvent:toGestureRecognizers:usingBlock:]"; "_deliverEvent:toGestureRecognizers:usingBlock:]";
return reinterpret_cast<IMP>(NULL); return bit_cast<IMP>(nullptr); // IMP is a function pointer type.
} }
return imp; return imp;
}(); }();