]> Git trees. - libqmvoc.git/commitdiff
QString::null->QString()
authorLaurent Montel <montel@kde.org>
Tue, 3 Jan 2006 10:46:37 +0000 (10:46 +0000)
committerLaurent Montel <montel@kde.org>
Tue, 3 Jan 2006 10:46:37 +0000 (10:46 +0000)
.clear()
Etc.

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

extdate/extcalendarsystem.cpp
extdate/extcalendarsystem.h
extdate/extcalendarsystemgregorian.cpp
extdate/extdatetime.cpp
kdeeducore/keduvocdata.cpp
kdeeducore/leitnersystem.cpp
libscience/parser.cpp

index 81da8edcafd0bbcc52ae87df690f9d670e8fe9bb..8ee4eeb94a3deddeb8de2a253f3d3e08377e428a 100644 (file)
@@ -146,6 +146,6 @@ QString ExtCalendarSystem::weekDayName (int weekDay, bool shortName) const
       case 7:  return locale()->translate("Sunday");
       }
 
-  return QString::null;
+  return QString();
 }
 
index 5007ba905e5371906d12f04c8c4a4a9e2c1d5d44..0d419df2afac62dfb4d472a9e33afb8810ec6c5b 100644 (file)
@@ -235,7 +235,7 @@ public:
 
   /**
    * Gets specific calendar type month name for a given month number
-   * If an invalid month is specified, QString::null is returned.
+   * If an invalid month is specified, QString() is returned.
    *
    * @param month The month number
    * @param year The year the month belongs to
@@ -257,7 +257,7 @@ public:
    * Returns a string containing the possessive form of the month name.
    * ("of January", "of February", etc.)
    * It's needed in long format dates in some languages.
-   * If an invalid month is specified, QString::null is returned.
+   * If an invalid month is specified, QString() is returned.
    *
    * @param month The month number
    * @param year The year the month belongs to
@@ -281,7 +281,7 @@ public:
 
   /**
    * Gets specific calendar type week day name
-   * If an invalid week day is specified, QString::null is returned.
+   * If an invalid week day is specified, QString() is returned.
    *
    * @param weekDay number of day in week (1 -> Monday)
    * @param shortName short or complete day name
index d358f59568cbc6f33a6482a96d894712f12e8734..47075305ebce4da93b2366569e26e9db56e36992 100644 (file)
@@ -144,7 +144,7 @@ QString ExtCalendarSystemGregorian::monthName(int month, int year, bool shortNam
         return locale()->translate("December");
       }
 
-  return QString::null;
+  return QString();
 }
 
 QString ExtCalendarSystemGregorian::monthNamePossessive(int month, int year,
@@ -209,7 +209,7 @@ QString ExtCalendarSystemGregorian::monthNamePossessive(int month, int year,
         return locale()->translate("of December");
       }
 
-  return QString::null;
+  return QString();
 }
 
 bool ExtCalendarSystemGregorian::setYMD(ExtDate & date, int y, int m, int d) const
index d311bfc3d6f6e9fa3feefbe9c24a23b9fde1e5c4..38710487554c98c6350a0e351c60d53e02f02755 100644 (file)
@@ -201,7 +201,7 @@ QString ExtDate::toString( Qt::DateFormat f) const
 {
        QString a_format;
 
-       if ( ! isValid() ) return QString::null;
+       if ( ! isValid() ) return QString();
 
        switch (f)
        {
@@ -228,7 +228,7 @@ QString ExtDate::toString( Qt::DateFormat f) const
 
 QString ExtDate::toString( const QString& format ) const
 {
-       if ( ! isValid() ) return QString::null;
+       if ( ! isValid() ) return QString();
 
        //We use the KDE Date format specs.
        //Replace occurences of the following tokens with their
@@ -820,7 +820,7 @@ void ExtDateTime::setTime_t( uint secsSince1Jan1970UTC, Qt::TimeSpec ts )
 QString ExtDateTime::toString( Qt::DateFormat f ) const
 {
        if ( !isValid() )
-               return QString::null;
+               return QString();
 
        if ( f == Qt::ISODate ) {
                return d.toString( Qt::ISODate ) + "T" + t.toString( Qt::ISODate );
@@ -835,14 +835,14 @@ QString ExtDateTime::toString( Qt::DateFormat f ) const
                                                + " " + KGlobal::locale()->timeFormat() );
        }
 
-       return QString::null;
+       return QString();
 }
 #endif
 
 QString ExtDateTime::toString( const QString& format ) const
 {
        if ( !isValid() )
-               return QString::null;
+               return QString();
 
        //Parse the date portion of the format string
        QString result = date().toString( format );
index 7e97be3254cdf0fff6cc305cbb17a9978bb1c809..da73cb3c1a4a404fc1a18b497245b55e22cc882d 100644 (file)
@@ -69,13 +69,13 @@ QString KEduVocDataItem::getText(const QString &tagName) const
                 return element.text();
             }
             else
-                return QString::null;
+                return QString();
         }
         else
-            return QString::null;
+            return QString();
     }
     else
-        return QString::null;
+        return QString();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
index f8e85a218615b49ed602c5d85628c9820e5a5e4f..0a55bf4e18a8a4c552d2574b89f98fc7d34de7c1 100644 (file)
@@ -74,7 +74,7 @@ const QString& LeitnerSystem::nextBox( QString& previousBox )
                        return box( i );
        }
 
-       return QString::null;
+       return QString();
 }
 
 const QString& LeitnerSystem::correctBox( int box )
index 38b46830024348826d5046f1b2ffd3010851634c..68acab5b3142088dfe461116b710cab673c2906c 100644 (file)
@@ -21,7 +21,7 @@
 
 Parser::Parser()
 {
-    start(QString::null);
+    start(QString());
 }