Skip to content

Commit

Permalink
Fixed|libcore: Don't repeat the same log section heading
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 74a2b15 commit 720c3bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doomsday/libs/core/src/core/log.cpp
Expand Up @@ -521,7 +521,7 @@ String LogEntry::asText(Flags const &formattingFlags, dsize shortenSection) cons
else
{
// If the section is very long, it's clearer to break the line here.
char const *separator = (sect.size() > LINE_BREAKING_SECTION_LENGTH? "\n " : " ");
char const *separator = (sect.size() > LINE_BREAKING_SECTION_LENGTH? "\n " : " ");
output << "[" << sect << "]" << separator;
}
}
Expand Down Expand Up @@ -710,10 +710,10 @@ LogEntry &Log::enter(duint32 metadata, String const &format, LogEntry::Args argu
}

// Collect the sections.
String context;
String latest;
int depth = 0;
for (char const *i : d->sectionStack)
String context;
CString latest;
int depth = 0;
for (const CString i : d->sectionStack)
{
if (i == latest)
{
Expand Down

0 comments on commit 720c3bd

Please sign in to comment.