Skip to content

Commit

Permalink
[unpackfsc] Fix build with old Qt
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaandegroot committed Nov 16, 2021
1 parent 8f0403a commit 6db52a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/unpackfsc/UnsquashRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <utils/Logger.h>
#include <utils/Runner.h>
#include <utils/String.h>

#include <QString>

Expand Down Expand Up @@ -54,7 +55,7 @@ UnsquashRunner::run()
QObject::connect( &r, &decltype( r )::output, [&]( QString line ) {
if ( line.startsWith( "Number of inodes " ) )
{
m_inodes = line.split( ' ', Qt::SkipEmptyParts ).last().toInt();
m_inodes = line.split( ' ', SplitSkipEmptyParts ).last().toInt();
}
} );
/* ignored */ r.run();
Expand Down Expand Up @@ -86,7 +87,7 @@ UnsquashRunner::unsquashProgress( QString line )
m_since++;
if ( m_since > chunk_size && line.contains( '/' ) )
{
const QString filename = line.split( '/', Qt::SkipEmptyParts ).last().trimmed();
const QString filename = line.split( '/', SplitSkipEmptyParts ).last().trimmed();
if ( !filename.isEmpty() )
{
m_since = 0;
Expand Down

0 comments on commit 6db52a9

Please sign in to comment.