[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kode
From: Andre Duffeck <andre () duffeck ! de>
Date: 2007-05-09 7:41:33
Message-ID: 1178696493.635451.16173.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 662802 by duffeck:
Don't assign QString::null
M +1 -1 kodemain.cpp
M +3 -3 kxforms/formcreator.cpp
M +1 -1 kxforms/formgui.h
M +1 -1 kxforms/kresult.h
M +1 -1 kxforms/mainwindow.cpp
M +1 -1 kxml_compiler/schema.h
--- trunk/KDE/kdepim/kode/kodemain.cpp #662801:662802
@@ -584,7 +584,7 @@
QFileInfo fi( protocolFilename );
protocolFilename = fi.absoluteFilePath();
- KSaveFile::simpleBackupFile( protocolFilename, QString::null, ".backup" );
+ KSaveFile::simpleBackupFile( protocolFilename, QString(), ".backup" );
QFile::remove( protocolFilename );
--- trunk/KDE/kdepim/kode/kxforms/formcreator.cpp #662801:662802
@@ -239,7 +239,7 @@
n.save( stream, 0 );
}
item->tag( "itemlabel", s );
- listItemType = QString::null;
+ listItemType.clear();
headers.append( createListHeader( e.attribute( "ref" ) ) );
}
} else {
@@ -248,7 +248,7 @@
listElement.type() == Schema::Node::String ||
(listElement.type() == Schema::Node::ComplexType && \
listElement.mixed() ) ) {
item->tag( "itemlabel", createListItemLabel( Reference( "." ), path, \
listItemType ) );
- listItemType = QString::null;
+ listItemType.clear();
headers.append( createListHeader( r.target() ) );
} else {
int subElementCnt = 0;
@@ -278,7 +278,7 @@
foreach( Reference r, subElements ) {
item->tag( "itemlabel", createListItemLabel( r, path, listItemType) );
- listItemType = QString::null;
+ listItemType.clear();
headers.append( createListHeader( r.lastSegment().name() ) );
}
}
--- trunk/KDE/kdepim/kode/kxforms/formgui.h #662801:662802
@@ -47,7 +47,7 @@
FormGui( const QString &label, Manager *, QWidget *parent );
- void parseElement( const QDomElement &, QLayout *l = 0, const QString \
&overrideLabel = QString::null, Layout *overrideGroup = 0 ); + void parseElement( \
const QDomElement &, QLayout *l = 0, const QString &overrideLabel = QString(), Layout \
*overrideGroup = 0 );
void setRef( const Reference &ref );
Reference ref() const;
--- trunk/KDE/kdepim/kode/kxforms/kresult.h #662801:662802
@@ -127,7 +127,7 @@
Create error KResult object of given error type and optional detailed error
message.
*/
- KResult( ErrorType, const QString &details = QString::null );
+ KResult( ErrorType, const QString &details = QString() );
/**
Destruct KResult object.
--- trunk/KDE/kdepim/kode/kxforms/mainwindow.cpp #662801:662802
@@ -167,7 +167,7 @@
void MainWindow::fileOpen()
{
- KUrl url = KFileDialog::getOpenUrl( KUrl(), QString::null, this,
+ KUrl url = KFileDialog::getOpenUrl( KUrl(), QString(), this,
i18n("Open XML File") );
if ( !url.isEmpty() ) {
--- trunk/KDE/kdepim/kode/kxml_compiler/schema.h #662801:662802
@@ -54,7 +54,7 @@
void setChoice( const QString & );
QString choice() const;
- QString asString( const QString &type = QString::null ) const;
+ QString asString( const QString &type = QString() ) const;
private:
QString mTarget;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic