Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / onlinehelp / helpwritercontext.cpp
index 5e7e3a7d9cc8281a435c4a0564cf4a56f1e01eab..dcc655e3d23ba025f660ed2630443ded26e13170 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2012,2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 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.
@@ -457,10 +457,10 @@ class HelpWriterContext::Impl
                     {
                         consoleOptionsFormatter_.reset(new TextTableFormatter());
                         consoleOptionsFormatter_->setFirstColumnIndent(1);
-                        consoleOptionsFormatter_->addColumn(NULL, 7, false);
-                        consoleOptionsFormatter_->addColumn(NULL, 18, false);
-                        consoleOptionsFormatter_->addColumn(NULL, 16, false);
-                        consoleOptionsFormatter_->addColumn(NULL, 28, false);
+                        consoleOptionsFormatter_->addColumn(nullptr, 7, false);
+                        consoleOptionsFormatter_->addColumn(nullptr, 18, false);
+                        consoleOptionsFormatter_->addColumn(nullptr, 16, false);
+                        consoleOptionsFormatter_->addColumn(nullptr, 28, false);
                     }
                     return *consoleOptionsFormatter_;
                 }
@@ -540,7 +540,7 @@ class HelpWriterContext::Impl
 std::string HelpWriterContext::Impl::replaceLinks(const std::string &input) const
 {
     std::string result(input);
-    if (state_->links_ != NULL)
+    if (state_->links_ != nullptr)
     {
         HelpLinks::Impl::LinkList::const_iterator link;
         for (link  = state_->links_->impl_->links_.begin();
@@ -603,7 +603,7 @@ void HelpWriterContext::Impl::processMarkup(const std::string &text,
  */
 
 HelpWriterContext::HelpWriterContext(TextWriter *writer, HelpOutputFormat format)
-    : impl_(new Impl(Impl::StatePointer(new Impl::SharedState(writer, format, NULL)), 0))
+    : impl_(new Impl(Impl::StatePointer(new Impl::SharedState(writer, format, nullptr)), 0))
 {
 }
 
@@ -611,7 +611,7 @@ HelpWriterContext::HelpWriterContext(TextWriter *writer, HelpOutputFormat format
                                      const HelpLinks *links)
     : impl_(new Impl(Impl::StatePointer(new Impl::SharedState(writer, format, links)), 0))
 {
-    if (links != NULL)
+    if (links != nullptr)
     {
         GMX_RELEASE_ASSERT(links->impl_->format_ == format,
                            "Links must have the same output format as the context");