Commit f780a03c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Modernize code

parent e2183b83
Pipeline #60776 passed with stage
in 3 minutes and 35 seconds
...@@ -143,7 +143,7 @@ void KTNEFPropertySet::addAttribute(int key, int type, const QVariant &value, bo ...@@ -143,7 +143,7 @@ void KTNEFPropertySet::addAttribute(int key, int type, const QVariant &value, bo
return; return;
} }
} }
KTNEFProperty *p = new KTNEFProperty(key, type, value, QVariant()); auto *p = new KTNEFProperty(key, type, value, QVariant());
d->attributes_[p->key()] = p; d->attributes_[p->key()] = p;
} }
......
...@@ -40,12 +40,12 @@ ...@@ -40,12 +40,12 @@
//@endcond //@endcond
//@cond PRIVATE //@cond PRIVATE
typedef struct _lzfuheader { using lzfuheader = struct _lzfuheader {
quint32 cbSize; quint32 cbSize;
quint32 cbRawSize; quint32 cbRawSize;
quint32 dwMagic; quint32 dwMagic;
quint32 dwCRC; quint32 dwCRC;
} lzfuheader; };
//@endcond //@endcond
//@cond IGNORE //@cond IGNORE
......
...@@ -181,7 +181,7 @@ static const struct { ...@@ -181,7 +181,7 @@ static const struct {
{0x8560, I18N_NOOP("Reminder Next Time")}, {0x8560, I18N_NOOP("Reminder Next Time")},
{0, nullptr}}; {0, nullptr}};
typedef QMap<int, QString> TagMap; using TagMap = QMap<int, QString>;
Q_GLOBAL_STATIC(TagMap, MAPI_TagMap) Q_GLOBAL_STATIC(TagMap, MAPI_TagMap)
Q_GLOBAL_STATIC(TagMap, MAPI_NamedTagMap) Q_GLOBAL_STATIC(TagMap, MAPI_NamedTagMap)
......
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