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

Sharan Rao sharanrao at gmail.com
Sat Jun 23 18:22:03 UTC 2007


SVN commit 679356 by sharan:

no escaping the double quote when it's used as a single character ( inside the single quotes )



 M  +4 -4      codeclassfield.cpp  
 M  +4 -4      codegenerators/cppwriter.cpp  
 M  +4 -4      codegenerators/dwriter.cpp  
 M  +4 -4      codegenerators/javawriter.cpp  
 M  +2 -2      codegenerators/xmlschemawriter.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/codeclassfield.cpp #679355:679356
@@ -367,10 +367,10 @@
 {
     // check for strings only
     if (!value.isEmpty() && type == "String") {
-        if (!value.startsWith('\"'))
-            value.prepend('\"');
-        if (!value.endsWith('\"'))
-            value.append('\"');
+        if (!value.startsWith('"'))
+            value.prepend('"');
+        if (!value.endsWith('"'))
+            value.append('"');
     }
     return value;
 }
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/cppwriter.cpp #679355:679356
@@ -1235,10 +1235,10 @@
     QString val = value;
     // check for strings only
     if (!val.isEmpty() && type == policyExt()->getStringClassName()) {
-        if (!val.startsWith("\""))
-            val.prepend('\"');
-        if (!val.endsWith('\"'))
-            val.append('\"');
+        if (!val.startsWith('"'))
+            val.prepend('"');
+        if (!val.endsWith('"'))
+            val.append('"');
     }
     return val;
 }
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/dwriter.cpp #679355:679356
@@ -914,10 +914,10 @@
 QString DWriter::fixInitialStringDeclValue(QString value, QString type) {
     // check for strings only
     if (!value.isEmpty() && type == "String") {
-        if (!value.startsWith('\"'))
-            value.prepend('\"');
-        if (!value.endsWith('\"'))
-            value.append('\"');
+        if (!value.startsWith('"'))
+            value.prepend('"');
+        if (!value.endsWith('"'))
+            value.append('"');
     }
     return value;
 }
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/javawriter.cpp #679355:679356
@@ -895,10 +895,10 @@
 {
     // check for strings only
     if (!value.isEmpty() && type == "String") {
-        if (!value.startsWith('\"'))
-            value.prepend('\"');
-        if (!value.endsWith('\"'))
-            value.append('\"');
+        if (!value.startsWith('"'))
+            value.prepend('"');
+        if (!value.endsWith('"'))
+            value.append('"');
     }
     return value;
 }
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/xmlschemawriter.cpp #679355:679356
@@ -745,9 +745,9 @@
 {
     // check for strings only
     if (!value.isEmpty() && type == "xs:string") {
-        if (!value.startsWith('\"'))
+        if (!value.startsWith('"'))
             value.remove(0,1);
-        if (!value.endsWith('\"'))
+        if (!value.endsWith('"'))
             value.remove(value.length(),1);
     }
     return value;




More information about the umbrello-devel mailing list