loplugin:nullptr (automatic rewrite)

Change-Id: I1bc6c87fcd6e5e96362623be94c59be216a3b2b8
This commit is contained in:
Stephan Bergmann
2015-11-10 10:21:55 +01:00
parent 5bbdb9423e
commit 26f05d59bc
116 changed files with 6156 additions and 6156 deletions

View File

@@ -414,10 +414,10 @@ SAL_IMPLEMENT_MAIN()
std::exit(EXIT_FAILURE);
}
#endif
CppUnit::Protector *protector = fn == 0
? 0
CppUnit::Protector *protector = fn == nullptr
? nullptr
: (*reinterpret_cast< cppunittester::ProtectorFactory * >(fn))();
if (protector == 0) {
if (protector == nullptr) {
std::cerr
<< "Failure instantiating protector \"" << convertLazy(lib)
<< "\", \"" << convertLazy(sym) << '"' << std::endl;