From 3a90121c460f3832966773c3341708f77e5e0474 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 30 May 2021 17:12:25 +0200 Subject: loplugin:stringview Change-Id: I4a6345db1ff379dedc540ceaf295968689b1d0c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116410 Tested-by: Jenkins Reviewed-by: Noel Grandin --- idlc/source/scanner.l | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'idlc') diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l index 7e3423fa8dc5..e7fff5ee31e6 100644 --- a/idlc/source/scanner.l +++ b/idlc/source/scanner.l @@ -396,15 +396,15 @@ published return IDL_PUBLISHED; } [^*]+ { - docu += OString(yytext); + docu += yytext; } "*"[^*/]+ { - docu += OString(yytext); + docu += yytext; } "**" { - docu += OString(yytext); + docu += yytext; } [*]+"/" { @@ -423,21 +423,21 @@ published return IDL_PUBLISHED; } [^*\n]+ { - docu += OString(yytext); + docu += yytext; } "\n"[ \t]*"*"{1} { idlc()->setLineNumber( idlc()->getLineNumber() + 1); - docu += OString("\n"); + docu += "\n"; } "\n" { idlc()->setLineNumber( idlc()->getLineNumber() + 1); - docu += OString(yytext); + docu += yytext; } "*"[^*^/\n]* { - docu += OString(yytext); + docu += yytext; } "\n"[ \t]*"*/" { -- cgit