mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
apply comment
This commit is contained in:
parent
35734aadde
commit
03f4aa19aa
@ -313,7 +313,7 @@ const StackTrace::Frames & StackTrace::getFrames() const
|
||||
{
|
||||
if (!frames.has_value())
|
||||
{
|
||||
frames.emplace({});
|
||||
frames.emplace();
|
||||
symbolize(frame_pointers.data(), offset, size, frames);
|
||||
}
|
||||
return frames;
|
||||
@ -357,7 +357,7 @@ static std::string toStringImpl(const void * const * frame_pointers, size_t offs
|
||||
{
|
||||
std::stringstream out;
|
||||
StackTrace::Frames frames{};
|
||||
frames = {{}};
|
||||
frames.emplace();
|
||||
symbolize(frame_pointers, offset, size, frames);
|
||||
toStringEveryLineImpl(frames, offset, size, [&](const std::string & str) { out << str << '\n'; });
|
||||
return out.str();
|
||||
|
Loading…
Reference in New Issue
Block a user