Code cleanup
This commit is contained in:
parent
c9865dba8c
commit
ad8910253b
@ -3,7 +3,6 @@
|
||||
//
|
||||
|
||||
#include "accountData.h"
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
AccountData::AccountData(const std::string &file) : Data(file) {
|
||||
|
@ -13,7 +13,7 @@ static const char *jsonTemplate = "";
|
||||
|
||||
class AccountData : private Data<Account> {
|
||||
public:
|
||||
AccountData(const std::string &file);
|
||||
explicit AccountData(const std::string &file);
|
||||
|
||||
Account *getAccount();
|
||||
|
||||
|
@ -4,4 +4,4 @@
|
||||
|
||||
#include "earning.h"
|
||||
|
||||
Earning::Earning(const int value, std::tm date) : value(value),date(date) {}
|
||||
Earning::Earning(const int value, std::tm date) : value(value), date(date) {}
|
||||
|
@ -6,8 +6,9 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
Transaction::Transaction(const int value, Receipt receipt, std::tm date) : value(value), receipt(std::move(receipt)), date(date) {
|
||||
|
||||
Transaction::Transaction(const int value, Receipt receipt, std::tm date) : value(value), receipt(std::move(receipt)),
|
||||
date(date) {
|
||||
|
||||
}
|
||||
|
||||
Receipt &Transaction::getReceipt() {
|
||||
|
@ -14,9 +14,11 @@ public:
|
||||
const int value;
|
||||
|
||||
Transaction(int value, Receipt receipt, std::tm date);
|
||||
Receipt &getReceipt();
|
||||
std::tm &getDate();
|
||||
|
||||
Receipt &getReceipt();
|
||||
|
||||
std::tm &getDate();
|
||||
|
||||
|
||||
private:
|
||||
Receipt receipt;
|
||||
|
Loading…
x
Reference in New Issue
Block a user