From ee3c19908d2d065e23b443ec4829ea2e7fc6015f Mon Sep 17 00:00:00 2001 From: Anton Filimonov Date: Wed, 28 Oct 2020 15:03:00 +0300 Subject: [PATCH] Revert "Pass full string to name decoding (#223)" This reverts commit 49f67f908ed5d0a076912cb48673f4ddb6c890d2. --- src/app/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 42694c8a1..459b41ede 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -160,8 +160,7 @@ struct CliParameters { options.parse( argc, argv ); for ( const auto& file : raw_filenames ) { - const auto rawName = QByteArray{ file.data(), static_cast( file.size() ) }; - const auto decodedName = QFile::decodeName( rawName ); + auto decodedName = QFile::decodeName( file.c_str() ); if ( !decodedName.isEmpty() ) { const auto fileInfo = QFileInfo( decodedName ); filenames.emplace_back( fileInfo.absoluteFilePath() );