Commit dcc44244 authored by Scott Wheeler's avatar Scott Wheeler

CVS_SILENT (1) "== QString::null()" -> "foo.isNull()" and (2) lousy Vi users

svn path=/trunk/kdemultimedia/juk/; revision=217730
parent 15db09bc
......@@ -96,7 +96,7 @@ ID3Tag::ID3Tag(const QString &file) : Tag(file), m_fileName(file), m_changed(fal
// parse the genre string for (<ID3v1 number>)
if(m_tagGenre == "(" + QString::number(m_tagGenre.getID3v1()) + ")" || m_tagGenre == QString::null)
if(m_tagGenre == "(" + QString::number(m_tagGenre.getID3v1()) + ")" || m_tagGenre.isNull())
m_tagGenre = GenreListList::ID3v1List().ID3v1Name(m_tagGenre.getID3v1());
else if(m_tagGenre.find(QRegExp("\\([0-9]+\\)")) == 0)
m_tagGenre = m_tagGenre.mid(m_tagGenre.find(")") + 1);
......
......@@ -380,7 +380,7 @@ PlaylistItem *Playlist::previousItem(PlaylistItem *current, bool random)
QString Playlist::name() const
{
if(m_playlistName == QString::null)
if(m_playlistName.isNull())
return m_playlistFileName.section(QDir::separator(), -1).section('.', 0, -2);
else
return m_playlistName;
......@@ -545,7 +545,7 @@ void Playlist::contentsDropEvent(QDropEvent *e)
void Playlist::contentsDragMoveEvent(QDragMoveEvent *e)
{
e->accept( KURLDrag::canDecode( e ) );
e->accept(KURLDrag::canDecode(e));
}
void Playlist::showEvent(QShowEvent *e)
......
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