Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a2d75ec9 authored by Arto Hytönen's avatar Arto Hytönen

kdemultimedia QString::null clean-up.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=701271
parent b30703ad
......@@ -69,7 +69,7 @@ public:
virtual QStringList playlists() const;
virtual void createPlaylist(const QString &name);
virtual void createDynamicPlaylist(const PlaylistList &playlists);
virtual void showMore(const QString &artist, const QString &album = QString::null); //krazy:excludestrassign for old broken gcc
virtual void showMore(const QString &artist, const QString &album = QString());
virtual void removeTrack(const QString &playlist, const QStringList &files);
virtual QString playlist() const;
......
......@@ -144,7 +144,7 @@ void PlaylistItem::setText(int column, const QString &text)
{
int offset = playlist()->columnOffset();
if(column - offset >= 0 && column + offset <= lastColumn()) {
K3ListViewItem::setText(column, QString::null); //krazy:exclude=nullstrassign for old broken gcc
K3ListViewItem::setText(column, QString());
return;
}
......
......@@ -457,7 +457,7 @@ void TagEditor::readConfig()
m_genreList.sort();
m_genreBox->clear();
m_genreBox->addItem(QString::null); //krazy:exclude=nullstrassign for old broken gcc
m_genreBox->addItem(QString());
m_genreBox->addItems(m_genreList);
m_genreBox->completionObject()->setItems(m_genreList);
}
......
......@@ -35,7 +35,7 @@ using std::endl;
void check( const QString &filename, const QString &title,
const QString &artist, const QString &track,
const QString &comment, const QString &album = QString::null ) //krazy:exclude=nullstrassign for old broken gcc
const QString &comment, const QString &album = QString() )
{
cout << "Checking " << qPrintable(filename) << "...";
TagGuesser guesser( filename );
......@@ -78,57 +78,57 @@ int main( int argc, char **argv )
check( "/home/frerich/Chemical Brothers - (01) - Block rockin' beats (Live).mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", "Live" );
check( "/home/frerich/Chemical Brothers - (01) - Block rockin' beats.mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", QString::null ); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", "01", QString() );
check( "/home/frerich/Chemical Brothers - [01] - Block rockin' beats [Live].mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", "Live" );
check( "/home/frerich/Chemical Brothers - [01] - Block rockin' beats (Live).mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", "Live" );
check( "/home/frerich/Chemical Brothers - [01] - Block rockin' beats.mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", QString::null ); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", "01", QString() );
check( "/home/frerich/Chemical Brothers - 01 - Block rockin' beats [Live].mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", "Live" );
check( "/home/frerich/Chemical Brothers - 01 - Block rockin' beats (Live).mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", "Live" );
check( "/home/frerich/Chemical Brothers - 01 - Block rockin' beats.mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", QString::null ); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", "01", QString() );
check( "/home/frerich/(01) Chemical Brothers - Block rockin' beats [Live].mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", "Live" );
check( "/home/frerich/(01) Chemical Brothers - Block rockin' beats (Live).mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", "Live" );
check( "/home/frerich/(01) Chemical Brothers - Block rockin' beats.mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", QString::null ); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", "01", QString() );
check( "/home/frerich/[01] Chemical Brothers - Block rockin' beats [Live].mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", "Live" );
check( "/home/frerich/[01] Chemical Brothers - Block rockin' beats (Live).mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", "Live" );
check( "/home/frerich/[01] Chemical Brothers - Block rockin' beats.mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", QString::null ); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", "01", QString() );
check( "/home/frerich/01 Chemical Brothers - Block rockin' beats [Live].mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", "Live" );
check( "/home/frerich/01 Chemical Brothers - Block rockin' beats (Live).mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", "Live" );
check( "/home/frerich/01 Chemical Brothers - Block rockin' beats.mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", QString::null ); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", "01", QString() );
check( "/home/frerich/(Chemical Brothers) Block rockin' beats [Live].mp3",
"Block Rockin' Beats", "Chemical Brothers", QString::null, "Live" ); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", QString(), "Live" );
check( "/home/frerich/(Chemical Brothers) Block rockin' beats (Live).mp3",
"Block Rockin' Beats", "Chemical Brothers", QString::null, "Live" ); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", QString(), "Live" );
check( "/home/frerich/(Chemical Brothers) Block rockin' beats.mp3",
"Block Rockin' Beats", "Chemical Brothers", QString::null, QString::null ); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", QString(), QString() );
check( "/home/frerich/Chemical Brothers - Block rockin' beats [Live].mp3",
"Block Rockin' Beats", "Chemical Brothers", QString::null, "Live" ); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", QString(), "Live" );
check( "/home/frerich/Chemical Brothers - Block rockin' beats (Live).mp3",
"Block Rockin' Beats", "Chemical Brothers", QString::null, "Live" ); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", QString(), "Live" );
check( "/home/frerich/Chemical Brothers - Block rockin' beats.mp3",
"Block Rockin' Beats", "Chemical Brothers", QString::null, QString::null ); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", QString(), QString() );
check( "/home/frerich/mp3/Chemical Brothers/Dig your own hole/[01] Block rockin' beats.mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", QString::null, "Dig Your Own Hole"); //krazy:exclude=nullstrassign for old broken gcc
"Block Rockin' Beats", "Chemical Brothers", "01", QString(), "Dig Your Own Hole");
check( QDir::homePath() + "/[01] Randy - Religion, religion.mp3",
"Religion, Religion", "Randy", "01", QString::null, QString::null ); //krazy:exclude=nullstrassign for old broken gcc
"Religion, Religion", "Randy", "01", QString(), QString() );
check( QDir::homePath() + "/(3) Mr. Doe - Punk.mp3",
"Punk", "Mr. Doe", "3", QString::null, QString::null ); //krazy:exclude=nullstrassign for old broken gcc
"Punk", "Mr. Doe", "3", QString(), QString() );
check( "c:\\music\\mp3s\\(3) Mr. Doe - Punk.mp3",
"Punk", "Mr. Doe", "3", QString::null, QString::null ); //krazy:exclude=nullstrassign for old broken gcc
"Punk", "Mr. Doe", "3", QString(), QString() );
cout << "All OK" << endl;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment