Commit b308caee authored by Antonio Larrosa Jimenez's avatar Antonio Larrosa Jimenez Committed by Antonio Larrosa Jimenez
Browse files

Add curly braces around single line blocks and spaces around =

parent 01534f7f
......@@ -53,7 +53,7 @@ public:
* At this point the default settings should be determined, merged
* with the given @p settings and written back if @p storeSettings is true.
*/
virtual bool init(QSettings &settings, bool storeSettings=true) = 0;
virtual bool init(QSettings &settings, bool storeSettings = true) = 0;
/**
* This method checks if the requirements for this database connection are met
......
......@@ -160,14 +160,17 @@ bool DbConfigMysql::init(QSettings &settings, bool storeSettings)
bool DbConfigMysql::isAvailable(QSettings &settings)
{
if (!QSqlDatabase::drivers().contains(driverName()))
if (!QSqlDatabase::drivers().contains(driverName())) {
return false;
}
if (!init(settings, false))
if (!init(settings, false)) {
return false;
}
if (mInternalServer && (mMysqldPath.isEmpty() || !QFile::exists(mMysqldPath)))
if (mInternalServer && (mMysqldPath.isEmpty() || !QFile::exists(mMysqldPath))) {
return false;
}
return true;
}
......
......@@ -40,7 +40,7 @@ public:
* At this point the default settings should be determined, merged
* with the given @p settings and written back if @p storeSettings is true.
*/
bool init(QSettings &settings, bool storeSettings=true) override;
bool init(QSettings &settings, bool storeSettings = true) override;
/**
* This method checks if the requirements for this database connection are met
......
......@@ -38,7 +38,7 @@ public:
* At this point the default settings should be determined, merged
* with the given @p settings and written back if @p storeSettings is true.
*/
bool init(QSettings &settings, bool storeSettings=true) override;
bool init(QSettings &settings, bool storeSettings = true) override;
/**
* This method checks if the requirements for this database connection are
......
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