diff options
Diffstat (limited to 'Source/cmTest.cxx')
-rw-r--r-- | Source/cmTest.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmTest.cxx b/Source/cmTest.cxx index f0288b2..464ad60 100644 --- a/Source/cmTest.cxx +++ b/Source/cmTest.cxx @@ -21,20 +21,18 @@ cmTest::cmTest(cmMakefile* mf) this->Makefile = mf; this->OldStyle = true; this->Properties.SetCMakeInstance(mf->GetCMakeInstance()); - this->Backtrace = new cmListFileBacktrace; - *this->Backtrace = this->Makefile->GetBacktrace(); + this->Backtrace = this->Makefile->GetBacktrace(); } //---------------------------------------------------------------------------- cmTest::~cmTest() { - delete this->Backtrace; } //---------------------------------------------------------------------------- cmListFileBacktrace const& cmTest::GetBacktrace() const { - return *this->Backtrace; + return this->Backtrace; } //---------------------------------------------------------------------------- |