mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-12 23:43:59 +03:00
cmListFileBacktrace: Constify API.
This commit is contained in:
1 parent
fc1c7cf85d
commit
52f2261685
2 files changed
+4
-4
No files matched your search
@@ -398,7 +398,7 @@ bool cmListFileParser::AddArgument(cmListFileLexer_Token* token,
|
||||
}
|
||||
}
|
||||
|
||||
void cmListFileBacktrace::PrintTitle(std::ostream& out)
|
||||
void cmListFileBacktrace::PrintTitle(std::ostream& out) const
|
||||
{
|
||||
if (!this->Snapshot.IsValid())
|
||||
{
|
||||
@@ -412,7 +412,7 @@ void cmListFileBacktrace::PrintTitle(std::ostream& out)
|
||||
out << (lfc.Line ? " at " : " in ") << lfc;
|
||||
}
|
||||
|
||||
void cmListFileBacktrace::PrintCallStack(std::ostream& out)
|
||||
void cmListFileBacktrace::PrintCallStack(std::ostream& out) const
|
||||
{
|
||||
if (!this->Snapshot.IsValid())
|
||||
{
|
||||
|
||||
@@ -95,8 +95,8 @@ class cmListFileBacktrace
|
||||
{
|
||||
}
|
||||
|
||||
void PrintTitle(std::ostream& out);
|
||||
void PrintCallStack(std::ostream& out);
|
||||
void PrintTitle(std::ostream& out) const;
|
||||
void PrintCallStack(std::ostream& out) const;
|
||||
private:
|
||||
cmCommandContext Context;
|
||||
cmState::Snapshot Snapshot;
|
||||
|
||||
Reference in new issue
Block a user