From fe397c33b1ce2217176eafa23a4828dc489b4e20 Mon Sep 17 00:00:00 2001 From: Peter Hedlund Date: Wed, 28 Feb 2007 17:53:21 +0000 Subject: [PATCH] Warnings-- svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=638055 --- kdeeducore/keduvockvtmlreader.cpp | 12 ++++-------- kdeeducore/keduvockvtmlreader.h | 2 +- kdeeducore/keduvocwqlreader.cpp | 8 ++++---- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/kdeeducore/keduvockvtmlreader.cpp b/kdeeducore/keduvockvtmlreader.cpp index 6639b4c..864dc93 100644 --- a/kdeeducore/keduvockvtmlreader.cpp +++ b/kdeeducore/keduvockvtmlreader.cpp @@ -130,7 +130,7 @@ bool KEduVocKvtmlReader::readBody(QDomElement &domElementParent) currentElement = domElementParent.firstChildElement(KV_CONJUG_GRP); if (!currentElement.isNull()) { QList conjugations; - result = readConjug(currentElement, conjugations, KV_CON_ENTRY); + result = readConjug(currentElement, conjugations); if (result) { KEduVocConjugation conjug; for (int i = 0; i< conjugations.count(); i++) { @@ -266,7 +266,6 @@ bool KEduVocKvtmlReader::readArticle(QDomElement &domElementParent) */ { - int count = 0; QString s; QDomAttr attribute; QDomElement currentElement; @@ -361,7 +360,7 @@ bool KEduVocKvtmlReader::readArticle(QDomElement &domElementParent) } -bool KEduVocKvtmlReader::readConjug(QDomElement &domElementParent, QList &curr_conjug, const QString &entry_tag) +bool KEduVocKvtmlReader::readConjug(QDomElement &domElementParent, QList &curr_conjug) /* used in header for definiton of "prefix" lang determines also lang order in entries !! @@ -1177,12 +1176,11 @@ bool KEduVocKvtmlReader::readExpression(QDomElement &domElementParent) //--------- // Children - bool result = false; currentChild = currentElement.firstChildElement(KV_CONJUG_GRP); if (!currentChild.isNull()) { conjug.clear(); - if (!readConjug(currentChild, conjug, (QString) KV_CON_TYPE)) + if (!readConjug(currentChild, conjug)) return false; } @@ -1300,12 +1298,10 @@ bool KEduVocKvtmlReader::readExpression(QDomElement &domElementParent) //--------- // Children - bool result = false; - currentChild = currentElement.firstChildElement(KV_CONJUG_GRP); if (!currentChild.isNull()) { conjug.clear(); - if (!readConjug(currentChild, conjug, (QString) KV_CON_TYPE)) + if (!readConjug(currentChild, conjug)) return false; } diff --git a/kdeeducore/keduvockvtmlreader.h b/kdeeducore/keduvockvtmlreader.h index 1ed8a10..ea3a066 100644 --- a/kdeeducore/keduvockvtmlreader.h +++ b/kdeeducore/keduvockvtmlreader.h @@ -82,7 +82,7 @@ public: bool readLesson(QDomElement &domElementParent); bool readArticle(QDomElement &domElementParent); - bool readConjug(QDomElement &domElementParent, QList &curr_conjug, const QString &entry_tag); + bool readConjug(QDomElement &domElementParent, QList &curr_conjug); bool readOptions(QDomElement &domElementParent); bool readType(QDomElement &domElementParent); bool readTense(QDomElement &domElementParent); diff --git a/kdeeducore/keduvocwqlreader.cpp b/kdeeducore/keduvocwqlreader.cpp index 69f18e2..724161c 100644 --- a/kdeeducore/keduvocwqlreader.cpp +++ b/kdeeducore/keduvocwqlreader.cpp @@ -68,7 +68,7 @@ bool KEduVocWqlReader::readDoc(KEduVocDocument *doc) s = inputStream.readLine(); p = s.indexOf("=", 0); s = s.right(s.length() - (p + 1)); - int ps = s.toInt(0); + //int ps = s.toInt(0); s = inputStream.readLine(); p = s.indexOf("=", 0); @@ -82,7 +82,7 @@ bool KEduVocWqlReader::readDoc(KEduVocDocument *doc) s = inputStream.readLine(); p = s.indexOf("=", 0); s = s.right(s.length() - (p + 1)); - bool it = (s == "1"); + //bool it = (s == "1"); //m_doc->setFont(new QFont(fam, ps, b, it)); @@ -147,8 +147,8 @@ bool KEduVocWqlReader::readDoc(KEduVocDocument *doc) { s = inputStream.readLine(); p = s.indexOf("[", 0); - QString r = s.mid(p + 1, 10); - int h = r.toInt(); + //QString r = s.mid(p + 1, 10); + //int h = r.toInt(); s = s.left(p); s = s.simplified(); -- 2.47.3