[Libreoffice-commits] core.git: idlc/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Sun May 30 16:17:43 UTC 2021


 idlc/source/scanner.l |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 3a90121c460f3832966773c3341708f77e5e0474
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Sun May 30 17:12:25 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun May 30 18:17:00 2021 +0200

    loplugin:stringview
    
    Change-Id: I4a6345db1ff379dedc540ceaf295968689b1d0c0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116410
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

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;
         }
 
 <COMMENT>[^*]+  {
-                docu += OString(yytext);
+                docu += yytext;
             } 
 
 <COMMENT>"*"[^*/]+  {
-                docu += OString(yytext);
+                docu += yytext;
             }
 
 <COMMENT>"**"   {
-                docu += OString(yytext);
+                docu += yytext;
             }
 
 <COMMENT>[*]+"/"  {
@@ -423,21 +423,21 @@ published       return IDL_PUBLISHED;
         }
 
 <DOCU>[^*\n]+   {
-                docu += OString(yytext);
+                docu += yytext;
             }
 
 <DOCU>"\n"[ \t]*"*"{1}  {
                 idlc()->setLineNumber( idlc()->getLineNumber()  + 1);
-                docu += OString("\n");
+                docu += "\n";
             }
 
 <DOCU>"\n"  {
                 idlc()->setLineNumber( idlc()->getLineNumber()  + 1);
-                docu += OString(yytext);
+                docu += yytext;
             }
 
 <DOCU>"*"[^*^/\n]*  {
-                docu += OString(yytext);
+                docu += yytext;
             }
 
 <DOCU>"\n"[ \t]*"*/"    {


More information about the Libreoffice-commits mailing list