summaryrefslogtreecommitdiffstats
path: root/sal/cppunittester
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:21:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:35 +0100
commit26f05d59bc1c25b8a0d19be7f4738fd12e557001 (patch)
tree560cccfaacf4b63385aa52ac4b3912248e87cbef /sal/cppunittester
parentloplugin:nullptr (automatic rewrite) (diff)
downloadcore-26f05d59bc1c25b8a0d19be7f4738fd12e557001.tar.gz
core-26f05d59bc1c25b8a0d19be7f4738fd12e557001.zip
loplugin:nullptr (automatic rewrite)
Change-Id: I1bc6c87fcd6e5e96362623be94c59be216a3b2b8
Diffstat (limited to 'sal/cppunittester')
-rw-r--r--sal/cppunittester/cppunittester.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx
index 95eecbe6baf2..34911e27e62c 100644
--- a/sal/cppunittester/cppunittester.cxx
+++ b/sal/cppunittester/cppunittester.cxx
@@ -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;