Commit 45a55b20 authored by Frederik Gladhorn's avatar Frederik Gladhorn

Fix unused variable warnings

parent 02c303b3
...@@ -52,6 +52,8 @@ KisODGImport::~KisODGImport() ...@@ -52,6 +52,8 @@ KisODGImport::~KisODGImport()
KisImportExportFilter::ConversionStatus KisODGImport::convert(KisDocument *document, QIODevice *io, KisPropertiesConfigurationSP configuration) KisImportExportFilter::ConversionStatus KisODGImport::convert(KisDocument *document, QIODevice *io, KisPropertiesConfigurationSP configuration)
{ {
Q_UNUSED(configuration);
KoStore* store = KoStore::createStore(io, KoStore::Read, "application/vnd.oasis.opendocument.graphics", KoStore::Zip); KoStore* store = KoStore::createStore(io, KoStore::Read, "application/vnd.oasis.opendocument.graphics", KoStore::Zip);
if (!store || store->bad()) { if (!store || store->bad()) {
delete store; delete store;
......
...@@ -51,6 +51,7 @@ void KisPSDTest::testOpening() ...@@ -51,6 +51,7 @@ void KisPSDTest::testOpening()
manager.setBatchMode(true); manager.setBatchMode(true);
KisImportExportFilter::ConversionStatus status = manager.importDocument(sourceFileInfo.absoluteFilePath(), QString()); KisImportExportFilter::ConversionStatus status = manager.importDocument(sourceFileInfo.absoluteFilePath(), QString());
QCOMPARE(status, KisImportExportFilter::OK);
Q_ASSERT(doc->image()); Q_ASSERT(doc->image());
} }
...@@ -63,6 +64,7 @@ QSharedPointer<KisDocument> openPsdDocument(const QFileInfo &fileInfo) ...@@ -63,6 +64,7 @@ QSharedPointer<KisDocument> openPsdDocument(const QFileInfo &fileInfo)
manager.setBatchMode(true); manager.setBatchMode(true);
KisImportExportFilter::ConversionStatus status = manager.importDocument(fileInfo.absoluteFilePath(), QString()); KisImportExportFilter::ConversionStatus status = manager.importDocument(fileInfo.absoluteFilePath(), QString());
Q_UNUSED(status);
return doc; return doc;
} }
......
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