From 6db52a904e9f56a03018c429c213c360085eded2 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 16 Nov 2021 01:41:00 +0100 Subject: [PATCH] [unpackfsc] Fix build with old Qt --- modules/unpackfsc/UnsquashRunner.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/unpackfsc/UnsquashRunner.cpp b/modules/unpackfsc/UnsquashRunner.cpp index 1b59910..7a22896 100644 --- a/modules/unpackfsc/UnsquashRunner.cpp +++ b/modules/unpackfsc/UnsquashRunner.cpp @@ -11,6 +11,7 @@ #include #include +#include #include @@ -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(); @@ -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;