Return Q_NULLPTR instead of 0 when the return type is a pointer.

This commit is contained in:
Felix Geyer 2012-07-23 14:58:57 +02:00
parent fcc936ceff
commit ecea101962
12 changed files with 67 additions and 66 deletions

View file

@ -486,7 +486,7 @@ Database* DatabaseTabWidget::indexDatabase(int index)
}
}
return 0;
return Q_NULLPTR;
}
DatabaseManagerStruct DatabaseTabWidget::indexDatabaseManagerStruct(int index)
@ -514,7 +514,7 @@ Database* DatabaseTabWidget::databaseFromDatabaseWidget(DatabaseWidget* dbWidget
}
}
return 0;
return Q_NULLPTR;
}
void DatabaseTabWidget::insertDatabase(Database* db, const DatabaseManagerStruct& dbStruct)
@ -542,7 +542,7 @@ DatabaseWidget* DatabaseTabWidget::currentDatabaseWidget()
return m_dbList[db].dbWidget;
}
else {
return 0;
return Q_NULLPTR;
}
}