mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-01-20 06:58:40 +00:00
fix formatting
This commit is contained in:
parent
a82e0383cb
commit
c090aedfda
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user