cmMakefile: Make cmListFileBacktrace default constructible.

This commit is contained in:
Stephen Kelly 2015-05-30 13:17:55 +02:00
parent b68f2ea8ae
commit 52919ac8ac
8 changed files with 10 additions and 10 deletions

View File

@ -17,7 +17,7 @@
//----------------------------------------------------------------------------
cmCustomCommand::cmCustomCommand()
: Backtrace(NULL)
: Backtrace()
{
this->HaveComment = false;
this->EscapeOldStyle = true;
@ -82,7 +82,7 @@ cmCustomCommand::cmCustomCommand(cmMakefile const* mf,
WorkingDirectory(workingDirectory?workingDirectory:""),
EscapeAllowMakeVars(false),
EscapeOldStyle(true),
Backtrace(NULL)
Backtrace()
{
this->EscapeOldStyle = true;
this->EscapeAllowMakeVars = false;

View File

@ -18,7 +18,7 @@
//----------------------------------------------------------------------------
cmExportBuildFileGenerator::cmExportBuildFileGenerator()
: Backtrace(NULL)
: Backtrace()
{
this->Makefile = 0;
this->ExportSet = 0;

View File

@ -34,7 +34,7 @@ cmGeneratorExpression::Parse(std::string const& input)
{
return cmsys::auto_ptr<cmCompiledGeneratorExpression>(
new cmCompiledGeneratorExpression(
this->Backtrace ? *this->Backtrace : cmListFileBacktrace(NULL),
this->Backtrace ? *this->Backtrace : cmListFileBacktrace(),
input));
}

View File

@ -35,7 +35,7 @@ cmGeneratorExpressionDAGChecker::cmGeneratorExpressionDAGChecker(
const GeneratorExpressionContent *content,
cmGeneratorExpressionDAGChecker *parent)
: Parent(parent), Target(target), Property(property),
Content(content), Backtrace(NULL), TransitivePropertiesOnly(false)
Content(content), Backtrace(), TransitivePropertiesOnly(false)
{
Initialize();
}

View File

@ -74,7 +74,7 @@ struct cmListFileFunction: public cmListFileContext
class cmListFileBacktrace: private std::vector<cmListFileContext>
{
public:
cmListFileBacktrace(cmLocalGenerator* localGen)
cmListFileBacktrace(cmLocalGenerator* localGen = 0)
: LocalGenerator(localGen)
, Relative(localGen ? false : true)
{

View File

@ -94,13 +94,13 @@ class cmTargetInternals
{
public:
cmTargetInternals()
: Backtrace(NULL)
: Backtrace()
{
this->PolicyWarnedCMP0022 = false;
this->UtilityItemsDone = false;
}
cmTargetInternals(cmTargetInternals const&)
: Backtrace(NULL)
: Backtrace()
{
this->PolicyWarnedCMP0022 = false;
this->UtilityItemsDone = false;

View File

@ -66,7 +66,7 @@ public:
class cmLinkImplItem: public cmLinkItem
{
public:
cmLinkImplItem(): cmLinkItem(), Backtrace(0), FromGenex(false) {}
cmLinkImplItem(): cmLinkItem(), Backtrace(), FromGenex(false) {}
cmLinkImplItem(std::string const& n,
cmTarget const* t,
cmListFileBacktrace const& bt,

View File

@ -301,7 +301,7 @@ class cmake
/** Display a message to the user. */
void IssueMessage(cmake::MessageType t, std::string const& text,
cmListFileBacktrace const& backtrace = cmListFileBacktrace(NULL));
cmListFileBacktrace const& backtrace = cmListFileBacktrace());
void IssueMessage(cmake::MessageType t, std::string const& text,
cmListFileContext const& lfc);