Make C++11 mandatory.

This commit is contained in:
Felix Geyer
2015-07-24 18:28:12 +02:00
parent 0e85c98d02
commit 7fa0eddc5f
112 changed files with 332 additions and 411 deletions

View File

@@ -27,7 +27,7 @@
EntryModel::EntryModel(QObject* parent)
: QAbstractTableModel(parent)
, m_group(Q_NULLPTR)
, m_group(nullptr)
{
}
@@ -71,7 +71,7 @@ void EntryModel::setEntryList(const QList<Entry*>& entries)
severConnections();
m_group = Q_NULLPTR;
m_group = nullptr;
m_allGroups.clear();
m_entries = entries;
m_orgEntries = entries;
@@ -215,7 +215,7 @@ QStringList EntryModel::mimeTypes() const
QMimeData* EntryModel::mimeData(const QModelIndexList& indexes) const
{
if (indexes.isEmpty()) {
return Q_NULLPTR;
return nullptr;
}
QMimeData* data = new QMimeData();
@@ -240,7 +240,7 @@ QMimeData* EntryModel::mimeData(const QModelIndexList& indexes) const
if (seenEntries.isEmpty()) {
delete data;
return Q_NULLPTR;
return nullptr;
}
else {
data->setData(mimeTypes().first(), encoded);
@@ -298,11 +298,11 @@ void EntryModel::entryDataChanged(Entry* entry)
void EntryModel::severConnections()
{
if (m_group) {
disconnect(m_group, Q_NULLPTR, this, Q_NULLPTR);
disconnect(m_group, nullptr, this, nullptr);
}
Q_FOREACH (const Group* group, m_allGroups) {
disconnect(group, Q_NULLPTR, this, Q_NULLPTR);
disconnect(group, nullptr, this, nullptr);
}
}