diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:23:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:39 +0100 |
commit | ae7fa10e1ac79900e53302080ab39230c4f1d4a3 (patch) | |
tree | 90f8976326d00d16d34c5504d9f9cab95b6beea5 /smoketest | |
parent | b6fe760beb512cafdb5e6fa5b03b3ed8746b612c (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: Ib245679d105d52d187e63b29dfc7f4076dadad13
Diffstat (limited to 'smoketest')
-rw-r--r-- | smoketest/libtest.cxx | 4 | ||||
-rw-r--r-- | smoketest/smoketest.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/smoketest/libtest.cxx b/smoketest/libtest.cxx index ae87c796112a..b7205258cb92 100644 --- a/smoketest/libtest.cxx +++ b/smoketest/libtest.cxx @@ -42,7 +42,7 @@ long getTimeMS() { struct timeval t; - gettimeofday(&t, NULL); + gettimeofday(&t, nullptr); return t.tv_sec*1000 + t.tv_usec/1000; } @@ -111,7 +111,7 @@ int main (int argc, char **argv) if( argc > 3 ) { - const char *pFilter = NULL; + const char *pFilter = nullptr; if( argc > 4 ) pFilter = argv[4]; fprintf( stderr, "save document as '%s' (%s)\n", argv[3], pFilter ? pFilter : "<null>" ); diff --git a/smoketest/smoketest.cxx b/smoketest/smoketest.cxx index 8b070989d4d2..c4c2178066e1 100644 --- a/smoketest/smoketest.cxx +++ b/smoketest/smoketest.cxx @@ -65,7 +65,7 @@ class Listener: public cppu::WeakImplHelper< css::frame::XDispatchResultListener > { public: - explicit Listener(Result * result): result_(result) { OSL_ASSERT(result != 0); } + explicit Listener(Result * result): result_(result) { OSL_ASSERT(result != nullptr); } private: virtual void SAL_CALL disposing(css::lang::EventObject const &) |