GenericProject: Cleanup and modernize

* Use nullptr instead 0
* Remove QLatin1{String|Char} where possible
* Use C++11 list init and auto
* Add some const as drive-by-change

Change-Id: Ife4c9c7b0869bcf2c864b88b8061ac6b7c3f33c0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2016-12-25 17:59:17 +01:00
committed by André Hartmann
parent c2d25982a1
commit 70556e8495
9 changed files with 75 additions and 75 deletions

View File

@@ -58,7 +58,7 @@ namespace Internal {
bool GenericProjectPlugin::initialize(const QStringList &, QString *errorMessage)
{
Q_UNUSED(errorMessage)
Utils::MimeDatabase::addMimeTypes(QLatin1String(":genericproject/GenericProjectManager.mimetypes.xml"));
Utils::MimeDatabase::addMimeTypes(":genericproject/GenericProjectManager.mimetypes.xml");
addAutoReleasedObject(new Manager);
addAutoReleasedObject(new ProjectFilesFactory);