using path instead of string

This commit is contained in:
Martin Brodbeck 2018-08-09 08:36:45 +02:00
parent fe6b858f32
commit 92d08a4798
3 changed files with 10 additions and 7 deletions

View file

@ -16,6 +16,7 @@
#include <exception>
#include <regex>
#include <filesystem>
#include <QFileDialog>
#include <QMessageBox>
@ -376,8 +377,10 @@ void MainWindow::onImportSellerExcelActionTriggered()
if (filename.isEmpty())
return;
std::u16string fname16 = filename.toStdU16String();
ExcelReader::readSellersFromFile(convertFromUtf16ToUtf8(fname16), marketplace_.get());
std::filesystem::path filePath(filename.toStdU16String());
ExcelReader::readSellersFromFile(filePath, marketplace_.get());
}
void MainWindow::onImportSellerJsonActionTriggered()