]> Git trees. - libqmvoc.git/commitdiff
single character QString -> char
authorPino Toscano <pino@kde.org>
Tue, 9 May 2006 21:10:09 +0000 (21:10 +0000)
committerPino Toscano <pino@kde.org>
Tue, 9 May 2006 21:10:09 +0000 (21:10 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=539170

extdate/extdatetime.cpp
kdeeduui/kdeeduglossary.cpp

index bb67b913da429eabadc3d146c7ed6c4f6c658dc7..7e33328cea1cfcacd57d279932fe7a2e859e0f9e 100644 (file)
@@ -789,7 +789,7 @@ QString ExtDateTime::toString( Qt::DateFormat f ) const
                return QString();
 
        if ( f == Qt::ISODate ) {
-               return d.toString( Qt::ISODate ) + "T" + t.toString( Qt::ISODate );
+               return d.toString( Qt::ISODate ) + 'T' + t.toString( Qt::ISODate );
        }
 #ifndef QT_NO_TEXTDATE
        else if ( f == Qt::TextDate ) {
@@ -798,7 +798,7 @@ QString ExtDateTime::toString( Qt::DateFormat f ) const
 #endif
        else if ( f == Qt::LocalDate ) {
                return toString( KGlobal::locale()->dateFormat()
-                                               + " " + KGlobal::locale()->timeFormat() );
+                                               + ' ' + KGlobal::locale()->timeFormat() );
        }
 
        return QString();
index 2b9637c23db0062cce0f3162c9d36beb728ac2c7..725ee83b337dbab9cca2b241ea1f09f53de21ae0 100644 (file)
@@ -123,7 +123,7 @@ void Glossary::fixImagePath()
        kDebug() << "Glossary::fixImagePath()" << endl;
        QList<GlossaryItem*>::iterator it = m_itemlist.begin();
        const QList<GlossaryItem*>::iterator itEnd = m_itemlist.end();
-       QString imgtag = "<img src=\"" + m_picturepath + "/" + "\\1\" />";
+       QString imgtag = "<img src=\"" + m_picturepath + '/' + "\\1\" />";
        QRegExp exp( "\\[img\\]([^[]+)\\[/img\\]" );
 
        for ( ; it != itEnd ; ++it )