bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c++: simplify a default construction


From: Akim Demaille
Subject: c++: simplify a default construction
Date: Sun, 11 Nov 2018 08:26:52 +0100

commit 2deb6874465f5b3fc6ced7241809321dc85ecdae
Author: Akim Demaille <address@hidden>
Date:   Sat Nov 10 16:59:09 2018 +0100

    c++: simplify a default construction
    
    * data/lalr1.cc (yytnamerr_): here.

diff --git a/data/lalr1.cc b/data/lalr1.cc
index 936dacd1..8706eda6 100644
--- a/data/lalr1.cc
+++ b/data/lalr1.cc
@@ -522,7 +522,7 @@ m4_if(b4_prefix, [yy], [],
   {
     if (*yystr == '"')
       {
-        std::string yyr = "";
+        std::string yyr;
         char const *yyp = yystr;
 
         for (;;)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]