code beautifying

This commit is contained in:
Martin Brodbeck 2019-04-08 10:48:24 +02:00
parent d3e56e629d
commit b9ec6f983e

View file

@ -113,7 +113,9 @@ QVariant SaleModel::data(const QModelIndex& index, int role) const
Article* article = static_cast<Article*>(index.internalPointer()); Article* article = static_cast<Article*>(index.internalPointer());
switch (index.column()) { switch (index.column()) {
case 0: case 0:
return (std::string("Verk. ") + article->getSeller()->getSellerNoAsString() + " (" + article->getCompleteArticleNo() + ")").c_str(); return (std::string("Verk. ") + article->getSeller()->getSellerNoAsString() + " (" +
article->getCompleteArticleNo() + ")")
.c_str();
case 1: case 1:
return article->getPriceAsString().c_str(); return article->getPriceAsString().c_str();
case 2: case 2: