]> Git trees. - libqmvoc.git/commitdiff
less warnings
authorPino Toscano <pino@kde.org>
Tue, 27 Feb 2007 11:49:43 +0000 (11:49 +0000)
committerPino Toscano <pino@kde.org>
Tue, 27 Feb 2007 11:49:43 +0000 (11:49 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=637684

kdeeducore/keduvockvtmlreader.cpp

index 1513c9250f255277954df1830e94f4cc609f7f27..4bf9668532e24c194c2dc4e4f6c733c5eb5bfecb 100644 (file)
@@ -174,7 +174,7 @@ bool KEduVocKvtmlReader::readBody(QDomElement &domElementParent)
   if (entryList.length() <= 0)
     return false;
 
-  for (int i = 0; i < entryList.length(); i++) {
+  for (int i = 0; i < entryList.count(); ++i) {
     currentElement = entryList.item(i).toElement();
     if (currentElement.parentNode() == domElementParent) {
       result = readExpression(currentElement);
@@ -214,7 +214,7 @@ bool KEduVocKvtmlReader::readLesson(QDomElement &domElementParent)
   QList<int> inQueryList;
   inQueryList.clear();
 
-  for (int i = 0; i < entryList.length(); i++) {
+  for (int i = 0; i < entryList.count(); ++i) {
     currentElement = entryList.item(i).toElement();
     if (currentElement.parentNode() == domElementParent) {
       int no = 0;
@@ -276,7 +276,7 @@ bool KEduVocKvtmlReader::readArticle(QDomElement &domElementParent)
   if (entryList.length() <= 0)
     return false;
 
-  for (int i = 0; i < entryList.length(); i++) {
+  for (int i = 0; i < entryList.count(); ++i) {
     currentElement = entryList.item(i).toElement();
     if (currentElement.parentNode() == domElementParent) {
       QString lang;
@@ -625,7 +625,7 @@ bool KEduVocKvtmlReader::readType(QDomElement &domElementParent)
 
   descriptions.clear();
 
-  for (int i = 0; i < entryList.length(); i++) {
+  for (int i = 0; i < entryList.count(); ++i) {
     currentElement = entryList.item(i).toElement();
     if (currentElement.parentNode() == domElementParent) {
       int no = 0;
@@ -658,7 +658,7 @@ bool KEduVocKvtmlReader::readTense(QDomElement &domElementParent)
 
   descriptions.clear();
 
-  for (int i = 0; i < entryList.length(); i++) {
+  for (int i = 0; i < entryList.count(); ++i) {
     currentElement = entryList.item(i).toElement();
     if (currentElement.parentNode() == domElementParent) {
       int no = 0;
@@ -691,7 +691,7 @@ bool KEduVocKvtmlReader::readUsage(QDomElement &domElementParent)
 
   descriptions.clear();
 
-  for (int i = 0; i < entryList.length(); i++) {
+  for (int i = 0; i < entryList.count(); ++i) {
     currentElement = entryList.item(i).toElement();
     if (currentElement.parentNode() == domElementParent) {
       int no = 0;
@@ -1248,7 +1248,7 @@ bool KEduVocKvtmlReader::readExpression(QDomElement &domElementParent)
 
   QDomNodeList translationList = domElementParent.elementsByTagName(KV_TRANS);
 
-  for (int i = 0; i < translationList.length(); i++)
+  for (int i = 0; i < translationList.count(); ++i)
   {
     currentElement = translationList.item(i).toElement();
     if (currentElement.parentNode() == domElementParent) {