mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3341730586
commit
795fea6735
2 changed files with 2 additions and 6 deletions
|
@ -106,7 +106,7 @@ QHash<KUrl, QVariant> KFileMetaDataReaderApplication::readFileMetaData(const QLi
|
|||
// ranges for each key.
|
||||
if (urls.count() == 1) {
|
||||
const QString path = urls.first().toLocalFile();
|
||||
KFileMetaInfo metaInfo(path, QString(), KFileMetaInfo::Fastest);
|
||||
KFileMetaInfo metaInfo(path, KFileMetaInfo::Fastest);
|
||||
const QHash<QString, KFileMetaInfoItem> metaInfoItems = metaInfo.items();
|
||||
foreach (const KFileMetaInfoItem& metaInfoItem, metaInfoItems) {
|
||||
const QString uriString = metaInfoItem.name();
|
||||
|
|
|
@ -22,14 +22,12 @@
|
|||
#include <kaboutdata.h>
|
||||
#include <kcmdlineargs.h>
|
||||
#include <kapplication.h>
|
||||
#include <kmimetype.h>
|
||||
#include <kdebug.h>
|
||||
#include <kfilemetainfo.h>
|
||||
#include <klocale.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
// Recognized metadata entries:
|
||||
// mimeType - the mime type of the file, so we need not extra determine it
|
||||
// what - what to load
|
||||
|
||||
using namespace KIO;
|
||||
|
@ -66,8 +64,7 @@ MetaInfoProtocol::~MetaInfoProtocol()
|
|||
|
||||
void MetaInfoProtocol::get(const KUrl &url)
|
||||
{
|
||||
QString mimeType = metaData("mimeType");
|
||||
KFileMetaInfo info(url.toLocalFile(), mimeType);
|
||||
KFileMetaInfo info(url.toLocalFile());
|
||||
|
||||
QByteArray arr;
|
||||
QDataStream stream(&arr, QIODevice::WriteOnly);
|
||||
|
@ -80,7 +77,6 @@ void MetaInfoProtocol::get(const KUrl &url)
|
|||
|
||||
void MetaInfoProtocol::put(const KUrl& url, int, KIO::JobFlags)
|
||||
{
|
||||
QString mimeType = metaData("mimeType");
|
||||
KFileMetaInfo info;
|
||||
|
||||
QByteArray arr;
|
||||
|
|
Loading…
Add table
Reference in a new issue