summaryrefslogtreecommitdiff
path: root/smoketest/libtest.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:23:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:39 +0100
commitae7fa10e1ac79900e53302080ab39230c4f1d4a3 (patch)
tree90f8976326d00d16d34c5504d9f9cab95b6beea5 /smoketest/libtest.cxx
parentb6fe760beb512cafdb5e6fa5b03b3ed8746b612c (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: Ib245679d105d52d187e63b29dfc7f4076dadad13
Diffstat (limited to 'smoketest/libtest.cxx')
-rw-r--r--smoketest/libtest.cxx4
1 files changed, 2 insertions, 2 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>" );