code cleanup
This commit is contained in:
parent
710b4cf9fb
commit
9fd29d588f
24 changed files with 60 additions and 101 deletions
|
@ -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_; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue