Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / trajectoryanalysis / cmdlinerunner.cpp
index 71992a21f2878372a804138a500a4787716e9ade..77c348ce583c6d252e08040822e4474fee1da6ec 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2010,2011,2012,2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2010,2011,2012,2013,2014,2015,2016,2017, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -128,7 +128,7 @@ int RunnerModule::run()
     module_->initAfterFirstFrame(settings_, common_.frame());
 
     t_pbc  pbc;
-    t_pbc *ppbc = settings_.hasPBC() ? &pbc : NULL;
+    t_pbc *ppbc = settings_.hasPBC() ? &pbc : nullptr;
 
     int    nframes = 0;
     AnalysisDataParallelOptions         dataOptions;
@@ -138,7 +138,7 @@ int RunnerModule::run()
     {
         common_.initFrame();
         t_trxframe &frame = common_.frame();
-        if (ppbc != NULL)
+        if (ppbc != nullptr)
         {
             set_pbc(ppbc, topology.ePBC(), frame.box);
         }
@@ -151,7 +151,7 @@ int RunnerModule::run()
     }
     while (common_.readNextFrame());
     module_->finishFrames(pdata.get());
-    if (pdata.get() != NULL)
+    if (pdata.get() != nullptr)
     {
         pdata->finish();
     }
@@ -191,7 +191,7 @@ TrajectoryAnalysisCommandLineRunner::runAsMain(
     {
         return createModule(factory());
     };
-    return ICommandLineOptionsModule::runAsMain(argc, argv, NULL, NULL, runnerFactory);
+    return ICommandLineOptionsModule::runAsMain(argc, argv, nullptr, nullptr, runnerFactory);
 }
 
 // static