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
{
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;
}

View File

@ -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;