using path instead of string
This commit is contained in:
parent
fe6b858f32
commit
92d08a4798
3 changed files with 10 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue