Succesful refactor #3

Merged
MassiveAtoms merged 7 commits from refactor into sqlitecpp 2019-06-30 13:12:37 +00:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit c5763ed826 - Show all commits

View File

@ -6,7 +6,8 @@ Park_spot::Park_spot()
: parked{nullptr}, id{auto_increment_db() + 1}, taken{false} { : parked{nullptr}, id{auto_increment_db() + 1}, taken{false} {
save_db(); save_db();
} }
Park_spot::Park_spot(Customer parked_, int id_, bool taken_)
Park_spot::Park_spot(Customer* parked_, int id_, bool taken_)
: parked{nullptr}, : parked{nullptr},
id{id_}, id{id_},
taken{taken_} // TODO: think about how init parked? taken{taken_} // TODO: think about how init parked?

View File

@ -16,6 +16,7 @@ class Park_spot {
bool taken; bool taken;
Customer* parked; Customer* parked;
Park_spot(); Park_spot();
Park_spot(Customer* parked_, int id_, bool taken_);
~Park_spot(); ~Park_spot();
void void
clock(Customer* c_customer); clock(Customer* c_customer);