using path instead of string
This commit is contained in:
parent
fe6b858f32
commit
92d08a4798
3 changed files with 10 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <xlnt/xlnt.hpp>
|
||||
|
||||
void ExcelReader::readSellersFromFile(const std::string& filename, Marketplace* market)
|
||||
void ExcelReader::readSellersFromFile(std::filesystem::path& filePath, Marketplace* market)
|
||||
{
|
||||
for (auto& seller : market->getSellers()) {
|
||||
seller->setState(Seller::State::DELETE);
|
||||
|
@ -10,7 +10,7 @@ void ExcelReader::readSellersFromFile(const std::string& filename, Marketplace*
|
|||
market->storeToDb(true);
|
||||
|
||||
xlnt::workbook wb;
|
||||
wb.load(filename);
|
||||
wb.load(filePath);
|
||||
auto ws = wb.sheet_by_index(0);
|
||||
|
||||
const int START_ROW = 5;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue