diff --git a/DataStorage/Database/Connection/ConnectionAbstract.h b/DataStorage/Database/Connection/ConnectionAbstract.h index ed16409..2651b73 100755 --- a/DataStorage/Database/Connection/ConnectionAbstract.h +++ b/DataStorage/Database/Connection/ConnectionAbstract.h @@ -22,7 +22,7 @@ namespace DataStorage namespace Database { struct ConnectionAbstract { - void* con = NULL; + void *con = NULL; DbConnectionConfig dbdata; @@ -30,7 +30,7 @@ namespace DataStorage DatabaseStatus status = DatabaseStatus::CLOSED; - virtual void connect(DbConnectionConfig* dbdata = NULL) + virtual void connect(DbConnectionConfig *dbdata = NULL) { return; } diff --git a/DataStorage/Database/Connection/PostgresqlConnection.h b/DataStorage/Database/Connection/PostgresqlConnection.h index 0664a98..9bc418c 100755 --- a/DataStorage/Database/Connection/PostgresqlConnection.h +++ b/DataStorage/Database/Connection/PostgresqlConnection.h @@ -70,7 +70,7 @@ namespace DataStorage if (stat != ConnStatusType::CONNECTION_OK) { this->status = DatabaseStatus::MISSING_DATABASE; - PQfinish((PGconn*)this->con); + PQfinish((PGconn *) this->con); this->con = NULL; if (this->dbdata.password != NULL) { @@ -83,7 +83,7 @@ namespace DataStorage void close() { if (this->con != NULL) { - PQfinish((PGconn*)this->con); + PQfinish((PGconn *) this->con); } this->con = NULL;