[Uml-devel] KDE/kdesdk/umbrello/umbrello/codeimport/kdevcppparser

Ralf Habacker ralf.habacker at gmail.com
Mon Jul 9 10:22:34 UTC 2012


SVN commit 1304802 by habacker:

Fixed assertation parsing #define <name>(<value>) #<value>.

BUG:303222

 M  +6 -0      preprocesslexer.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/codeimport/kdevcppparser/preprocesslexer.cpp #1304801:1304802
@@ -803,7 +803,13 @@
             Token tk;
             nextToken(tk);
 
+            if (tk == '#') {
+                nextToken(tk);
             if (tk.type() != -1) {
+                    body += '"' + tk.text() + '"';
+                }
+            }
+            else if (tk.type() != -1) {
                 QString s = tk.text();
                 body += s;
             }




More information about the umbrello-devel mailing list