forward port r1214358

svn path=/trunk/KDE/kdelibs/; revision=1214362
This commit is contained in:
Patrick Spendrin 2011-01-14 11:23:22 +00:00
parent 904ad74970
commit c16bfacb7b

View File

@ -43,7 +43,7 @@ public:
void ref()
{
if (m_ref == 0) {
m_db = QSqlDatabase::addDatabase("QSQLITE", QString("plasma-storage-%1").arg((ulong)this));
m_db = QSqlDatabase::addDatabase("QSQLITE", QString("plasma-storage-%1").arg((quintptr)this));
m_db.setDatabaseName(KStandardDirs::locateLocal("appdata", "plasma-storage.db"));
}
//Q_ASSERT(db.isValid());