/*
* 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.
{
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_;
}
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();
*/
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))
{
}
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");