Commit e7a8a3cc authored by Laurent Montel's avatar Laurent Montel 😁

It's static

parent 82431aed
......@@ -65,7 +65,8 @@ QByteArray TaskAttribute::serialized() const
QByteArray TaskAttribute::type() const
{
return "TaskAttribute";
static const QByteArray sType( "TaskAttribute" );
return sType;
}
......@@ -33,7 +33,8 @@ SearchDescriptionAttribute::SearchDescriptionAttribute()
QByteArray SearchDescriptionAttribute::type() const
{
return "kmailsearchdescription";
static const QByteArray sType( "kmailsearchdescription" );
return sType;
}
Akonadi::Attribute* SearchDescriptionAttribute::clone() const
......
......@@ -46,7 +46,8 @@ QMap<QByteArray, QByteArray> CollectionAnnotationsAttribute::annotations() const
QByteArray CollectionAnnotationsAttribute::type() const
{
return "collectionannotations";
static const QByteArray sType( "collectionannotations" );
return sType;
}
Akonadi::Attribute *CollectionAnnotationsAttribute::clone() const
......
......@@ -37,7 +37,8 @@ ExpireCollectionAttribute::ExpireCollectionAttribute()
QByteArray ExpireCollectionAttribute::type() const
{
return "expirationcollectionattribute";
static const QByteArray sType( "expirationcollectionattribute" );
return sType;
}
Akonadi::Attribute *ExpireCollectionAttribute::clone() const
......
......@@ -58,7 +58,8 @@ QByteArray NoteAlarmAttribute::serialized() const
QByteArray NoteAlarmAttribute::type() const
{
return "NoteAlarmAttribute";
static const QByteArray sType( "NoteAlarmAttribute" );
return sType;
}
void NoteAlarmAttribute::setDateTime(const KDateTime &dateTime)
......
......@@ -112,7 +112,8 @@ QByteArray NoteDisplayAttribute::serialized() const
QByteArray NoteDisplayAttribute::type() const
{
return "NoteDisplayAttribute";
static const QByteArray sType( "NoteDisplayAttribute" );
return sType;
}
void NoteDisplayAttribute::setBackgroundColor(const QColor &color)
......
......@@ -52,7 +52,8 @@ QByteArray NoteLockAttribute::serialized() const
QByteArray NoteLockAttribute::type() const
{
//We can't change this name!
return "KJotsLockAttribute";
static const QByteArray sType( "KJotsLockAttribute" );
return sType;
}
......@@ -51,7 +51,8 @@ QMap<QByteArray, KIMAP::Acl::Rights> ImapAclAttribute::oldRights() const
QByteArray ImapAclAttribute::type() const
{
return "imapacl";
static const QByteArray sType( "imapacl" );
return sType;
}
Akonadi::Attribute *ImapAclAttribute::clone() const
......
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