From 8583a66398b216a9d1ff4235384bebf5126618ab Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 8 Apr 2021 21:02:54 -0700 Subject: [PATCH] LASI plugin: remove use of endl This is generally considered an anti-pattern in C++ these days. --- plugin/lasi/gvrender_lasi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/lasi/gvrender_lasi.cpp b/plugin/lasi/gvrender_lasi.cpp index 5677c3429..fce2cd2d1 100644 --- a/plugin/lasi/gvrender_lasi.cpp +++ b/plugin/lasi/gvrender_lasi.cpp @@ -380,7 +380,7 @@ static void lasi_textspan(GVJ_t * job, pointf p, textspan_t * span) ps_set_color(job, &(job->obj->pencolor)); Context *ctxt = reinterpret_cast(job->context); - ctxt->doc.osBody() << setFont(font, style, weight, variant, stretch) << setFontSize(span->font->size) << endl; + ctxt->doc.osBody() << setFont(font, style, weight, variant, stretch) << setFontSize(span->font->size) << "\n"; switch (span->just) { case 'r': p.x -= span->size.x; @@ -396,7 +396,7 @@ static void lasi_textspan(GVJ_t * job, pointf p, textspan_t * span) p.y += span->yoffset_centerline; gvprintpointf(job, p); gvputs(job, " moveto "); - ctxt->doc.osBody() << show(span->str) << endl; + ctxt->doc.osBody() << show(span->str) << "\n"; } -- 2.40.0