Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / utility / logger.h
index f9f4f6d2759e69b5e95ae6f4ce575600dec1f7b5..4f52ec6045c181a8b9cf188b45d3e9c67a77b656 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2016, by the GROMACS development team, led by
+ * Copyright (c) 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.
@@ -124,7 +124,7 @@ class LogWriteHelper
          * Note that the return value is unintuitively `false` when the target
          * is active, to allow implementing ::GMX_LOG like it is now.
          */
-        operator bool() const { return target_ == NULL; }
+        operator bool() const { return target_ == nullptr; }
 
         /*! \brief
          * Writes the entry from the given writer to the log target.
@@ -159,7 +159,7 @@ class LogLevelHelper
 
         // Both of the below should be explicit, once that works in CUDA.
         //! Returns whether the output for this log level goes anywhere.
-        operator bool() const { return target_ != NULL; }
+        operator bool() const { return target_ != nullptr; }
 
         //! Creates a helper for ::GMX_LOG.
         operator LogWriteHelper() const { return LogWriteHelper(target_); }