diff options
Diffstat (limited to 'Source/cmListFileCache.cxx')
| -rw-r--r-- | Source/cmListFileCache.cxx | 26 | 
1 files changed, 8 insertions, 18 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index 2756cd2..ca58314 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -405,29 +405,17 @@ void cmListFileBacktrace::Append(cmListFileContext const& context)    this->push_back(context);  } -//---------------------------------------------------------------------------- -void cmListFileBacktrace::MakeRelative() -{ -  if (this->Relative) -    { -    return; -    } -  for (cmListFileBacktrace::iterator i = this->begin(); -       i != this->end(); ++i) -    { -    i->FilePath = this->LocalGenerator->Convert(i->FilePath, -                                                cmLocalGenerator::HOME); -    } -  this->Relative = true; -} -  void cmListFileBacktrace::PrintTitle(std::ostream& out)  {    if (this->empty())      {      return;      } -  out << (this->front().Line ? " at " : " in ") << this->front(); + +  cmOutputConverter converter(this->Snapshot); +  cmListFileContext lfc = this->front(); +  lfc.FilePath = converter.Convert(lfc.FilePath, cmOutputConverter::HOME); +  out << (lfc.Line ? " at " : " in ") << lfc;  }  void cmListFileBacktrace::PrintCallStack(std::ostream& out) @@ -437,11 +425,13 @@ void cmListFileBacktrace::PrintCallStack(std::ostream& out)      return;      } +  cmOutputConverter converter(this->Snapshot);    const_iterator i = this->begin() + 1;    out << "Call Stack (most recent call first):\n";    while(i != this->end())      { -    cmListFileContext const& lfc = *i; +    cmListFileContext lfc = *i; +    lfc.FilePath = converter.Convert(lfc.FilePath, cmOutputConverter::HOME);      out << "  " << lfc << "\n";      ++i;      }  | 
