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

Oliver Kellogg okellogg at users.sourceforge.net
Tue Feb 6 20:51:10 UTC 2007


SVN commit 630939 by okellogg:

fix a few signed/unsigned comparisons

 M  +3 -3      codegenerators/cppwriter.cpp  
 M  +2 -2      codegenerators/javawriter.cpp  
 M  +2 -2      codegenerators/tclwriter.cpp  
 M  +2 -2      codegenerators/xmlschemawriter.cpp  
 M  +1 -1      codeimport/idlimport.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/cppwriter.cpp #630938:630939
@@ -647,7 +647,7 @@
     if (comment.contains(QRegExp("\n"))) {
 
         QStringList lines = QStringList::split( "\n", comment);
-        for(uint i= 0; i < lines.count(); i++)
+        for (int i= 0; i < lines.count(); i++)
         {
             cpp << myIndent << "// " << lines[i] << m_endl;
         }
@@ -671,7 +671,7 @@
     if (!end.isEmpty())
     {
         QStringList lines = QStringList::split( "\n", end);
-        for(uint i= 0; i < lines.count(); i++)
+        for (int i= 0; i < lines.count(); i++)
             cpp << formatDoc(lines[i], indent + " * ");
     }
     cpp << indent << " */" << m_endl;
@@ -1278,7 +1278,7 @@
         return;
 
     QStringList lines = QStringList::split( "\n", text);
-    for(uint i= 0; i < lines.count(); i++)
+    for (int i= 0; i < lines.count(); i++)
         stream << indent << lines[i] << m_endl;
 }
 
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/javawriter.cpp #630938:630939
@@ -383,7 +383,7 @@
         if(javaDocStyle)
             java << myIndent << "/**" << m_endl;
         QStringList lines = QStringList::split( "\n", comment);
-        for(uint i= 0; i < lines.count(); i++)
+        for (int i= 0; i < lines.count(); i++)
         {
             writeBlankLine(java);
             if(javaDocStyle)
@@ -420,7 +420,7 @@
     if (!end.isEmpty())
     {
         QStringList lines = QStringList::split( "\n", end);
-        for(uint i= 0; i < lines.count(); i++)
+        for (int i= 0; i < lines.count(); i++)
             java<<formatDoc(lines[i], indent+" * ");
     }
     java<<indent<<" */";
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/tclwriter.cpp #630938:630939
@@ -372,7 +372,7 @@
 TclWriter::writeComm(const QString &text)
 {
     QStringList     lines = QStringList::split("\n", text, true);
-    for (uint i = 0; i < lines.count(); i++) {
+    for (int i = 0; i < lines.count(); i++) {
         *mStream << getIndent() << "# " << lines[i] << m_endl;
     }
 }
@@ -381,7 +381,7 @@
 TclWriter::writeDocu(const QString &text)
 {
     QStringList     lines = QStringList::split("\n", text, true);
-    for (uint i = 0; i < lines.count(); i++) {
+    for (int i = 0; i < lines.count(); i++) {
         *mStream << getIndent() << "## " << lines[i] << m_endl;
     }
 }
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/xmlschemawriter.cpp #630938:630939
@@ -343,7 +343,7 @@
         if(hasAttributes)
         {
             writeAttributeDecls(attribs, XMLschema);
-            for(uint i= 0; i < attribGroups.count(); i++)
+            for (int i= 0; i < attribGroups.count(); i++)
                 XMLschema<<getIndent()<<"<"<<makeSchemaTag("attributeGroup")<<" ref=\""
                 <<makePackageTag(attribGroups[i])<<"\"/>"<<m_endl;
         }
@@ -532,7 +532,7 @@
     if (comment.contains(QRegExp("\n"))) {
         XMLschema<<m_endl;
         QStringList lines = QStringList::split( "\n", comment);
-        for(uint i= 0; i < lines.count(); i++)
+        for (int i= 0; i < lines.count(); i++)
             XMLschema<<indent<<"     "<<lines[i]<<m_endl;
 
         XMLschema<<indent<<"-->"<<m_endl;
--- trunk/KDE/kdesdk/umbrello/umbrello/codeimport/idlimport.cpp #630938:630939
@@ -136,7 +136,7 @@
 
 bool IDLImport::parseStmt() {
     const QString& keyword = m_source[m_srcIndex];
-    const uint srcLength = m_source.count();
+    const int srcLength = m_source.count();
     if (keyword == "module") {
         const QString& name = advance();
         UMLObject *ns = Import_Utils::createUMLObject(Uml::ot_Package,




More information about the umbrello-devel mailing list