fix formatting

This commit is contained in:
Dennis Eichhorn 2022-12-10 23:51:50 +01:00
parent a82e0383cb
commit c090aedfda
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ namespace DataStorage
namespace Database namespace Database
{ {
struct ConnectionAbstract { struct ConnectionAbstract {
void* con = NULL; void *con = NULL;
DbConnectionConfig dbdata; DbConnectionConfig dbdata;
@ -30,7 +30,7 @@ namespace DataStorage
DatabaseStatus status = DatabaseStatus::CLOSED; DatabaseStatus status = DatabaseStatus::CLOSED;
virtual void connect(DbConnectionConfig* dbdata = NULL) virtual void connect(DbConnectionConfig *dbdata = NULL)
{ {
return; return;
} }

View File

@ -70,7 +70,7 @@ namespace DataStorage
if (stat != ConnStatusType::CONNECTION_OK) { if (stat != ConnStatusType::CONNECTION_OK) {
this->status = DatabaseStatus::MISSING_DATABASE; this->status = DatabaseStatus::MISSING_DATABASE;
PQfinish((PGconn*)this->con); PQfinish((PGconn *) this->con);
this->con = NULL; this->con = NULL;
if (this->dbdata.password != NULL) { if (this->dbdata.password != NULL) {
@ -83,7 +83,7 @@ namespace DataStorage
void close() void close()
{ {
if (this->con != NULL) { if (this->con != NULL) {
PQfinish((PGconn*)this->con); PQfinish((PGconn *) this->con);
} }
this->con = NULL; this->con = NULL;