code cleanup

This commit is contained in:
Martin Brodbeck 2019-10-07 14:08:01 +02:00
parent 710b4cf9fb
commit 9fd29d588f
24 changed files with 60 additions and 101 deletions

View file

@ -4,12 +4,8 @@
#include <iomanip>
#include <sstream>
// Article::Article() : Entity() {}
Article::Article(int price) : price_(price) {}
// Article::Article(std::shared_ptr<Seller> sellerPtr) : Entity() { sellerPtr_ = sellerPtr; }
void Article::setArticleNo(int articleNo) { articleNo_ = articleNo; }
void Article::setPrice(int price) { price_ = price; }
@ -29,10 +25,7 @@ Sale* Article::getSale() { return salePtr_; }
int Article::getPrice() const { return price_; }
std::string Article::getPriceAsString() const
{
return formatCentAsEuroString(price_);
}
std::string Article::getPriceAsString() const { return formatCentAsEuroString(price_); }
int Article::getArticleNo() const { return articleNo_; }