From 91158a3369e0f06600a9ada93222535d53361035 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 4 Jul 2015 12:14:58 +0200 Subject: cmMakefile: Create intermediate variables for snapshot frames. --- Source/cmMakefile.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 0d48cbc..8d02092 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -280,7 +280,8 @@ cmListFileBacktrace cmMakefile::GetBacktrace() const i = this->ContextStack.rbegin(); i != this->ContextStack.rend(); ++i) { - backtrace.Append(*(*i)); + cmListFileContext frame = *(*i); + backtrace.Append(frame); } return backtrace; } @@ -295,7 +296,8 @@ cmMakefile::GetBacktrace(cmListFileContext const& lfc) const i = this->ContextStack.rbegin(); i != this->ContextStack.rend(); ++i) { - backtrace.Append(*(*i)); + cmListFileContext frame = *(*i); + backtrace.Append(frame); } return backtrace; } -- cgit v0.12