code tweak

This commit is contained in:
Martin Brodbeck 2018-08-09 08:41:35 +02:00
parent 92d08a4798
commit 27edf6b6ea
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
#include <xlnt/xlnt.hpp> #include <xlnt/xlnt.hpp>
void ExcelReader::readSellersFromFile(std::filesystem::path& filePath, Marketplace* market) void ExcelReader::readSellersFromFile(const std::filesystem::path& filePath, Marketplace* market)
{ {
for (auto& seller : market->getSellers()) { for (auto& seller : market->getSellers()) {
seller->setState(Seller::State::DELETE); seller->setState(Seller::State::DELETE);

View File

@ -12,7 +12,7 @@
class ExcelReader class ExcelReader
{ {
public: public:
static void readSellersFromFile(std::filesystem::path& filePath, Marketplace* market); static void readSellersFromFile(const std::filesystem::path& filePath, Marketplace* market);
}; };
#endif #endif