]> Git trees. - libqmvoc.git/commitdiff
more crazy fixes
authorFrederik Gladhorn <gladhorn@kde.org>
Wed, 8 Oct 2008 20:39:38 +0000 (20:39 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Wed, 8 Oct 2008 20:39:38 +0000 (20:39 +0000)
break bc again :( but it's already changed in 4.1 to 4.2

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=869361

keduvocdocument/keduvocidentifier.cpp
keduvocdocument/keduvocidentifier.h
keduvocdocument/keduvocvokabelnreader.cpp

index 86e766a479d100942c3991320c38b433bbec4939..06a3e3c3352a050e1130221147b002ed7aae35c5 100644 (file)
@@ -120,7 +120,7 @@ void KEduVocIdentifier::setPersonalPronouns( const KEduVocPersonalPronoun & pron
     d->m_personalPronouns = pronouns;
 }
 
-const QString& KEduVocIdentifier::tense(int tenseIndex) const
+QString KEduVocIdentifier::tense(int tenseIndex) const
 {
     Q_ASSERT(d->m_tenses.size() > tenseIndex);
     return d->m_tenses.value(tenseIndex);
@@ -136,7 +136,7 @@ void KEduVocIdentifier::setTense(int tenseIndex, const QString& tense)
     }
 }
 
-const QStringList& KEduVocIdentifier::tenseList() const
+QStringList KEduVocIdentifier::tenseList() const
 {
     return d->m_tenses;
 }
index d3bc90c4a88a0465ab52f60d976c6f8321350b15..ca999506f0456a183c35b3610d1ca3df7d2344a2 100644 (file)
@@ -104,7 +104,7 @@ public:
      * @param tenseIndex desired tense
      * @return name of the tense
      */
-    const QString& tense(int tenseIndex) const;
+    QString tense(int tenseIndex) const;
 
     /**
      * Sets the name of a tense for this language
@@ -113,7 +113,7 @@ public:
      */
     void setTense(int tenseIndex, const QString& tense);
 
-    const QStringList& tenseList() const;
+    QStringList tenseList() const;
 
     void setTenseList(const QStringList& tenses);
 
index 343c2a11d5dcc804ef8654f1f490744b2337d8c0..0faa27f375f654ccb993b8605ad10d0b1a51dd53 100644 (file)
@@ -119,12 +119,12 @@ bool KEduVocVokabelnReader::readDoc( KEduVocDocument *doc )
         temp = inputStream.readLine(); //DO NOT translate
     }
 
-    for ( i = 0; i <= 14; i++ ) {
+    for ( i = 0; i <= 14; ++i ) {
         inputStream.readLine();
     }
 
 
-    for ( i = 0; i < wordCount - 1; i++ ) {
+    for ( i = 0; i < wordCount - 1; ++i ) {
         int c = 0;
         expression.clear();