disable ctor

This commit is contained in:
Martin Brodbeck 2019-10-07 13:58:10 +02:00
parent 98fdffe5fb
commit 710b4cf9fb
3 changed files with 5 additions and 0 deletions

View file

@ -16,6 +16,7 @@ class Article : public EntityUuid
public: public:
Article() = default; Article() = default;
Article(int price); Article(int price);
Article(const Article&) = delete;
virtual ~Article() = default; virtual ~Article() = default;
void setArticleNo(int articleNo); void setArticleNo(int articleNo);

View file

@ -17,6 +17,9 @@ using ArticlesVec = std::vector<Article*>;
class Sale : public EntityUuid class Sale : public EntityUuid
{ {
public: public:
Sale() = default;
Sale(const Sale&) = delete;
virtual ~Sale() = default;
void addArticle(Article* articlePtr); void addArticle(Article* articlePtr);
void setTimestamp(const std::string& timestamp); void setTimestamp(const std::string& timestamp);

View file

@ -14,6 +14,7 @@ class Seller : public EntityInt
{ {
public: public:
Seller() = default; Seller() = default;
Seller(const Seller&) = delete;
virtual ~Seller() = default; virtual ~Seller() = default;
Seller(const std::string& firstName, const std::string& lastName, int sellerNo = 0, Seller(const std::string& firstName, const std::string& lastName, int sellerNo = 0,
int numArticlesOffered = 0); int numArticlesOffered = 0);