Commit b2e2c421 authored by David Faure's avatar David Faure
Browse files

Use KFilterBase's method instead of KComprManager (was a wrong move)

svn path=/trunk/kdebase/kioslave/; revision=68496
parent 0940e986
......@@ -30,7 +30,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <kdebug.h>
#include <kmimemagic.h>
#include <kfilterbase.h>
#include <kcomprmanager.h>
#include "filter.h"
......@@ -59,7 +58,7 @@ FilterProtocol::FilterProtocol( const QCString & protocol, const QCString &pool,
: KIO::SlaveBase( protocol, pool, app )
{
QString mimetype = QString::fromLatin1("application/x-") + protocol;
filter = KComprManager::self()->findFilterByMimeType( mimetype );
filter = KFilterBase::findFilterByMimeType( mimetype );
ASSERT(filter);
}
......
......@@ -30,7 +30,7 @@
#include <kdebug.h>
#include "kfilterdev.h"
#include "kcomprmanager.h"
#include "kfilterbase.h"
#include "ktar.h"
......@@ -504,7 +504,7 @@ KTarGz::KTarGz( const QString& filename )
m_filename = filename;
d = new KTarGzPrivate;
d->fileDev = new QFile( m_filename );
d->filter = KComprManager::self()->findFilterByFileName( m_filename );
d->filter = KFilterBase::findFilterByFileName( m_filename );
d->filter->setDevice( d->fileDev );
setDevice( new KFilterDev( d->filter ) );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment