quick fix
This commit is contained in:
parent
55a7dabfe8
commit
25ef503889
@ -10,10 +10,11 @@ mail::mail(std::string filename, std::string subject, std::string sender) :
|
|||||||
m_file()
|
m_file()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
mail::mail(std::string filename, int64_t timestamp, std::string subject) :
|
mail::mail(std::string filename, int64_t timestamp, std::string subject, std::string sender) :
|
||||||
filename(filename),
|
filename(filename),
|
||||||
timestamp(timestamp),
|
timestamp(timestamp),
|
||||||
subject(subject),
|
subject(subject),
|
||||||
|
sender(sender),
|
||||||
deleted(false),
|
deleted(false),
|
||||||
m_file()
|
m_file()
|
||||||
{}
|
{}
|
||||||
|
|||||||
@ -24,7 +24,7 @@ struct mail {
|
|||||||
bool deleted;
|
bool deleted;
|
||||||
|
|
||||||
mail(std::string filename, std::string subject, std::string sender);
|
mail(std::string filename, std::string subject, std::string sender);
|
||||||
mail(std::string filename, int64_t timestamp, std::string subject);
|
mail(std::string filename, int64_t timestamp, std::string subject, std::string sender);
|
||||||
|
|
||||||
bool operator()(const u_int& id) const {
|
bool operator()(const u_int& id) const {
|
||||||
return id == this->id;
|
return id == this->id;
|
||||||
|
|||||||
@ -22,10 +22,10 @@ user::user(fs::path user_data_json) : m()
|
|||||||
mail* mail = new struct mail(
|
mail* mail = new struct mail(
|
||||||
mail_json["filename"],
|
mail_json["filename"],
|
||||||
mail_json["timestamp"],
|
mail_json["timestamp"],
|
||||||
mail_json["subject"]
|
mail_json["subject"],
|
||||||
|
mail_json["sender"]
|
||||||
);
|
);
|
||||||
mail->id = mail_json["id"];
|
mail->id = mail_json["id"];
|
||||||
mail->sender = mail_json["sender"];
|
|
||||||
mail->recipient = mail_json["recipient"];
|
mail->recipient = mail_json["recipient"];
|
||||||
mail->deleted = mail_json["deleted"];
|
mail->deleted = mail_json["deleted"];
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user