Commit 0c2e88e4 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Get rid of deprecated methods

parent 702eb32c
......@@ -35,8 +35,6 @@
#include <QVBoxLayout>
K_PLUGIN_FACTORY(KCDDBFactory, registerPlugin<CDDBModule>();)
K_EXPORT_PLUGIN(KCDDBFactory( "kcmcddb" ))
CDDBModule::CDDBModule(QWidget *parent, const QVariantList &args)
: KCModule(parent, args)
......
......@@ -438,7 +438,7 @@ namespace KCDDB
QString artist = get(Artist).toString();
s += d->createLine(QLatin1String( "DTITLE" ), artist + QLatin1String( " / " ) + get(Title).toString() );
int year = get(Year).toInt();
s += QLatin1String( "DYEAR=" ) + (0 == year ? QString::null : QString::number(year)) + QLatin1Char( '\n' ); //krazy:exclude=nullstrassign for old broken gcc
s += QLatin1String( "DYEAR=" ) + (0 == year ? QString() : QString::number(year)) + QLatin1Char( '\n' ); //krazy:exclude=nullstrassign for old broken gcc
if (get(Genre) == QLatin1String( "Unknown" ))
s += d->createLine(QLatin1String( "DGENRE" ), QString());
else
......
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