From 21a64f4a5732fcff1f45546e19f7f1f6c8e3ba65 Mon Sep 17 00:00:00 2001 From: Mario Bensi Date: Thu, 8 Sep 2011 16:35:55 +0200 Subject: [PATCH] Remove warning on deprecated KFilter::device* --- svg.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/svg.cpp b/svg.cpp index 01e5b31f3..368fd7a12 100644 --- a/svg.cpp +++ b/svg.cpp @@ -56,13 +56,11 @@ SharedSvgRenderer::SharedSvgRenderer( QObject *parent) : QSvgRenderer(parent) { - QIODevice *file = KFilterDev::deviceForFile(filename, "application/x-gzip"); - if (!file->open(QIODevice::ReadOnly)) { - delete file; + KCompressionDevice file(filename, KCompressionDevice::GZip); + if (!file.open(QIODevice::ReadOnly)) { return; } - load(file->readAll(), styleSheet, interestingElements); - delete file; + load(file.readAll(), styleSheet, interestingElements); } SharedSvgRenderer::SharedSvgRenderer(