diff options
-rw-r--r-- | odb/emitter.cxx | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/odb/emitter.cxx b/odb/emitter.cxx index 42b88b3..2989ffb 100644 --- a/odb/emitter.cxx +++ b/odb/emitter.cxx @@ -31,24 +31,21 @@ sync () s.resize (n - 1); } - if (!s.empty ()) - { - // Temporary restore output diversion. - // - bool r (false); - context& ctx (context::current ()); + // Temporary restore output diversion. + // + bool r (false); + context& ctx (context::current ()); - if (ctx.os.rdbuf () == this) - { - ctx.restore (); - r = true; - } + if (ctx.os.rdbuf () == this) + { + ctx.restore (); + r = true; + } - e_.line (s); + e_.line (s); - if (r) - ctx.diverge (this); - } + if (r) + ctx.diverge (this); str (string ()); return 0; |