diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-14 19:34:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-14 19:34:09 +0200 |
commit | 17683bcc74284c344dc67f5a9b806801af5c598f (patch) | |
tree | e93bff95d7cae47533004e257c3bf042fa8fd8a4 | |
parent | 2b4193a368e4be2db2ed0c51368e903890208067 (diff) |
Fix typos
-rw-r--r-- | brep/diagnostics | 16 | ||||
-rw-r--r-- | brep/module.cxx | 4 | ||||
-rw-r--r-- | web/apache/service | 2 |
3 files changed, 7 insertions, 15 deletions
diff --git a/brep/diagnostics b/brep/diagnostics index eda35cc..70ddb2a 100644 --- a/brep/diagnostics +++ b/brep/diagnostics @@ -95,27 +95,19 @@ namespace brep diag_record (diag_record&& r) : data_ (std::move (r.data_)), os_ (std::move (r.os_)) { - empty_ = r.empty_; - r.empty_ = true; - epilogue_ = r.epilogue_; - r.epilogue_ = nullptr; + r.data_.clear (); // Empty. } */ diag_record (diag_record&& r) : data_ (std::move (r.data_)) { - empty_ = r.empty_; - epilogue_ = r.epilogue_; - - if (!empty_) - { + if (!data_.empty ()) os_ << r.os_.str (); - r.empty_ = true; - r.epilogue_ = nullptr; - } + epilogue_ = r.epilogue_; + r.data_.clear (); // Empty. } diag_record& operator= (diag_record&&) = delete; diff --git a/brep/module.cxx b/brep/module.cxx index fb33e1e..3420aa0 100644 --- a/brep/module.cxx +++ b/brep/module.cxx @@ -30,7 +30,7 @@ namespace brep { // @@ Both log and return as 505. // - write (move (e.data)); + log_write (move (e.data)); } catch (const exception& e) { @@ -47,7 +47,7 @@ namespace brep } module:: - module (): log_writer_ (bind (&module::write, this, _1)) {} + module (): log_writer_ (bind (&module::log_write, this, _1)) {} void module:: log_write (diag_data&& d) const diff --git a/web/apache/service b/web/apache/service index 2b97108..bfa8fa9 100644 --- a/web/apache/service +++ b/web/apache/service @@ -36,7 +36,7 @@ namespace web m.handle (rq, rs, l); } - const M& exemplar_; + const module& exemplar_; void (*handle_) (request&, response&, log&, const module&); }; } |