code beautifying
This commit is contained in:
parent
e9fde76a60
commit
4fb6d2f98b
3 changed files with 10 additions and 9 deletions
|
@ -35,13 +35,14 @@ std::string Seller::getLastName() const { return lastName_; }
|
|||
|
||||
int Seller::getSellerNo() const { return sellerNo_; }
|
||||
|
||||
std::string Seller::getSellerNoAsString() const
|
||||
std::string Seller::getSellerNoAsString() const
|
||||
{
|
||||
std::stringstream selNoStr;
|
||||
|
||||
|
||||
selNoStr << std::setfill('0') << std::setw(3) << sellerNo_;
|
||||
|
||||
return selNoStr.str();;
|
||||
return selNoStr.str();
|
||||
;
|
||||
}
|
||||
|
||||
std::vector<Article*> Seller::getArticles(bool onlySold) const
|
||||
|
@ -103,7 +104,6 @@ int Seller::sumInCents()
|
|||
|
||||
std::string Seller::sumAsString() { return formatCentAsEuroString(sumInCents()); }
|
||||
|
||||
|
||||
bool operator<(const Seller& li, const Seller& re) { return li.sellerNo_ < re.sellerNo_; }
|
||||
bool operator<(const std::unique_ptr<Seller>& li, const std::unique_ptr<Seller>& re)
|
||||
{
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
//class Article;
|
||||
// class Article;
|
||||
|
||||
class Seller : public Entity
|
||||
{
|
||||
public:
|
||||
Seller() = default;
|
||||
//virtual ~Seller() = default;
|
||||
// virtual ~Seller() = default;
|
||||
Seller(const std::string& firstName, const std::string& lastName, int sellerNo = 0,
|
||||
int numArticlesOffered = 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue