aboutsummaryrefslogtreecommitdiff
path: root/libbutl/diagnostics.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-11-08 10:57:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-11-08 10:57:29 +0200
commit970e678f8a2266088f8610a2057111d211b943c1 (patch)
treeb62f99b8b5c6c5210e5f1dab5477af27820b76e9 /libbutl/diagnostics.cxx
parent983bdf3dd434fd60dfdfa0fe1fda5761b57b4519 (diff)
Pass writer to diagnostics epilogue
Diffstat (limited to 'libbutl/diagnostics.cxx')
-rw-r--r--libbutl/diagnostics.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbutl/diagnostics.cxx b/libbutl/diagnostics.cxx
index 3254e27..6ac8192 100644
--- a/libbutl/diagnostics.cxx
+++ b/libbutl/diagnostics.cxx
@@ -154,7 +154,7 @@ namespace butl
diag_stream->flush ();
}
- void (*diag_record::writer) (const diag_record&) = &default_writer;
+ diag_writer* diag_record::writer = &default_writer;
void diag_record::
flush (void (*w) (const diag_record&)) const
@@ -174,8 +174,8 @@ namespace butl
//
auto e (epilogue_);
epilogue_ = nullptr;
- e (*this); // Can throw. @@ TODO: pass writer.
- flush (w); // Call ourselves to write the data in case it returns.
+ e (*this, w); // Can throw.
+ flush (w); // Call ourselves to write the data in case it returns.
}
}
}