Commit 97501555 authored by Alexander Bikadorov's avatar Alexander Bikadorov
Browse files

Use const reference as parameter and std::move() if possible

Auto-correction using "clang-tidy -fix ...".
parent 15ca9d93
......@@ -1177,7 +1177,7 @@ mode_t kio_krarcProtocol::parsePermString(QString perm)
return mode;
}
UDSEntryList* kio_krarcProtocol::addNewDir(QString path)
UDSEntryList* kio_krarcProtocol::addNewDir(const QString& path)
{
KRFUNC;
UDSEntryList* dir;
......@@ -1861,7 +1861,7 @@ QString kio_krarcProtocol::detectFullPathName(QString name)
return name;
}
QString kio_krarcProtocol::fullPathName(QString name)
QString kio_krarcProtocol::fullPathName(const QString& name)
{
// Note: KRFUNC was not used here in order to avoid filling the log with too much information
KRDEBUG(name);
......@@ -1893,7 +1893,7 @@ QString kio_krarcProtocol::localeEncodedString(QString str)
return result;
}
QByteArray kio_krarcProtocol::encodeString(QString str)
QByteArray kio_krarcProtocol::encodeString(const QString& str)
{
// Note: KRFUNC was not used here in order to avoid filling the log with too much information
if (noencoding)
......
......@@ -71,7 +71,7 @@ protected:
QString getPath(const QUrl &url, QUrl::FormattingOptions options = nullptr);
QString localeEncodedString(QString str);
QByteArray encodeString(QString);
QByteArray encodeString(const QString&);
QString decodeString(char *);
// archive specific commands
......@@ -96,8 +96,8 @@ private:
/** find the UDSEntry of a file in a directory. */
KIO::UDSEntry* findFileEntry(const QUrl &url);
/** add a new directory (file list container). */
KIO::UDSEntryList* addNewDir(QString path);
QString fullPathName(QString name);
KIO::UDSEntryList* addNewDir(const QString& path);
QString fullPathName(const QString& name);
static QString detectFullPathName(QString name);
bool checkWriteSupport();
......
......@@ -58,7 +58,7 @@ bool KrArcBaseManager::checkStatus(const QString &arcType, int exitCode)
return exitCode == 0;
}
QString KrArcBaseManager::detectArchive(bool &encrypted, QString fileName, bool checkEncrypted, bool fast)
QString KrArcBaseManager::detectArchive(bool &encrypted, const QString& fileName, bool checkEncrypted, bool fast)
{
encrypted = false;
......
......@@ -49,7 +49,7 @@ protected:
public:
KrArcBaseManager() {}
QString detectArchive(bool &, QString, bool = true, bool = false);
QString detectArchive(bool &, const QString&, bool = true, bool = false);
virtual void checkIf7zIsEncrypted(bool &, QString) = 0;
static QString getShortTypeFromMime(const QString &);
virtual ~KrArcBaseManager() {}
......
......@@ -422,7 +422,7 @@ void AbstractJobThread::sendSuccess()
_job->sendEvent(errorEvent);
}
void AbstractJobThread::sendError(int errorCode, QString message)
void AbstractJobThread::sendError(int errorCode, const QString& message)
{
terminate();
......@@ -434,7 +434,7 @@ void AbstractJobThread::sendError(int errorCode, QString message)
_job->sendEvent(errorEvent);
}
void AbstractJobThread::sendInfo(QString message, QString a1, QString a2, QString a3, QString a4)
void AbstractJobThread::sendInfo(const QString& message, const QString& a1, const QString& a2, const QString& a3, const QString& a4)
{
QList<QVariant> args;
args << message;
......@@ -447,7 +447,7 @@ void AbstractJobThread::sendInfo(QString message, QString a1, QString a2, QStrin
_job->sendEvent(infoEvent);
}
void AbstractJobThread::sendReset(QString message, QString a1, QString a2, QString a3, QString a4)
void AbstractJobThread::sendReset(const QString& message, const QString& a1, const QString& a2, const QString& a3, const QString& a4)
{
QList<QVariant> args;
args << message;
......
......@@ -112,9 +112,9 @@ protected:
QUrl downloadIfRemote(const QUrl &baseUrl, const QStringList & files);
void countLocalFiles(const QUrl &baseUrl, const QStringList &names, unsigned long &totalFiles);
void sendError(int errorCode, QString message);
void sendInfo(QString message, QString a1 = QString(), QString a2 = QString(), QString a3 = QString(), QString a4 = QString());
void sendReset(QString message, QString a1 = QString(""), QString a2 = QString(""), QString a3 = QString(""), QString a4 = QString(""));
void sendError(int errorCode, const QString& message);
void sendInfo(const QString& message, const QString& a1 = QString(), const QString& a2 = QString(), const QString& a3 = QString(), const QString& a4 = QString());
void sendReset(const QString& message, const QString& a1 = QString(""), const QString& a2 = QString(""), const QString& a3 = QString(""), const QString& a4 = QString(""));
void sendSuccess();
void sendMessage(const QString &message);
void sendMaxProgressValue(qulonglong value);
......
......@@ -35,6 +35,7 @@
#include <KWallet/KWallet>
#include <KWidgetsAddons/KMessageBox>
#include <KWidgetsAddons/KPasswordDialog>
#include <utility>
#include "kr7zencryptionchecker.h"
#include "../krglobal.h"
......@@ -152,7 +153,7 @@ bool KRarcHandler::arcSupported(QString type)
|| (type == "7z" && lst.contains("7z"));
}
long KRarcHandler::arcFileCount(QString archive, QString type, QString password, KRarcObserver *observer)
long KRarcHandler::arcFileCount(const QString& archive, const QString& type, const QString& password, KRarcObserver *observer)
{
int divideWith = 1;
......@@ -231,7 +232,7 @@ long KRarcHandler::arcFileCount(QString archive, QString type, QString password,
return count / divideWith;
}
bool KRarcHandler::unpack(QString archive, QString type, QString password, QString dest, KRarcObserver *observer)
bool KRarcHandler::unpack(QString archive, const QString& type, const QString& password, const QString& dest, KRarcObserver *observer)
{
KConfigGroup group(krConfig, "Archives");
if (group.readEntry("Test Before Unpack", _TestBeforeUnpack)) {
......@@ -361,7 +362,7 @@ bool KRarcHandler::unpack(QString archive, QString type, QString password, QStri
return true; // SUCCESS
}
bool KRarcHandler::test(QString archive, QString type, QString password, KRarcObserver *observer, long count)
bool KRarcHandler::test(const QString& archive, const QString& type, const QString& password, KRarcObserver *observer, long count)
{
// choose the right packer for the job
QStringList packer;
......@@ -427,7 +428,7 @@ bool KRarcHandler::test(QString archive, QString type, QString password, KRarcOb
return true; // SUCCESS
}
bool KRarcHandler::pack(QStringList fileNames, QString type, QString dest, long count, QMap<QString, QString> extraProps, KRarcObserver *observer)
bool KRarcHandler::pack(QStringList fileNames, QString type, const QString& dest, long count, QMap<QString, QString> extraProps, KRarcObserver *observer)
{
// set the right packer to do the job
QStringList packer;
......@@ -576,7 +577,7 @@ bool KRarcHandler::openWallet()
return (wallet != nullptr);
}
QString KRarcHandler::getPassword(QString path)
QString KRarcHandler::getPassword(const QString& path)
{
QString password;
......@@ -640,9 +641,9 @@ bool KRarcHandler::isArchive(const QUrl &url)
else return false;
}
QString KRarcHandler::getType(bool &encrypted, QString fileName, QString mime, bool checkEncrypted, bool fast)
QString KRarcHandler::getType(bool &encrypted, QString fileName, const QString& mime, bool checkEncrypted, bool fast)
{
QString result = detectArchive(encrypted, fileName, checkEncrypted, fast);
QString result = detectArchive(encrypted, std::move(fileName), checkEncrypted, fast);
if (result.isNull()) {
// Then the type is based on the mime type
return getShortTypeFromMime(mime);
......@@ -650,7 +651,7 @@ QString KRarcHandler::getType(bool &encrypted, QString fileName, QString mime, b
return result;
}
bool KRarcHandler::checkStatus(QString type, int exitCode)
bool KRarcHandler::checkStatus(const QString& type, int exitCode)
{
return KrArcBaseManager::checkStatus(type, exitCode);
}
......
......@@ -56,13 +56,13 @@ class KRarcHandler: public QObject, public KrArcBaseManager
Q_OBJECT
public:
// return the number of files in the archive
static long arcFileCount(QString archive, QString type, QString password, KRarcObserver *observer);
static long arcFileCount(const QString& archive, const QString& type, const QString& password, KRarcObserver *observer);
// unpack an archive to destination directory
static bool unpack(QString archive, QString type, QString password, QString dest, KRarcObserver *observer );
static bool unpack(QString archive, const QString& type, const QString& password, const QString& dest, KRarcObserver *observer );
// pack an archive to destination directory
static bool pack(QStringList fileNames, QString type, QString dest, long count, QMap<QString, QString> extraProps, KRarcObserver *observer );
static bool pack(QStringList fileNames, QString type, const QString& dest, long count, QMap<QString, QString> extraProps, KRarcObserver *observer );
// test an archive
static bool test(QString archive, QString type, QString password, KRarcObserver *observer, long count = 0L );
static bool test(const QString& archive, const QString& type, const QString& password, KRarcObserver *observer, long count = 0L );
// returns `true` if the right unpacker exist in the system
static bool arcSupported(QString type);
// return the list of supported packers
......@@ -70,14 +70,14 @@ public:
// returns `true` if the url is an archive (ie: tar:/home/test/file.tar.bz2)
static bool isArchive(const QUrl &url);
// used to determine the type of the archive
QString getType(bool &encrypted, QString fileName, QString mime, bool checkEncrypted = true, bool fast = false);
QString getType(bool &encrypted, QString fileName, const QString& mime, bool checkEncrypted = true, bool fast = false);
// queries the password from the user
static QString getPassword(QString path);
static QString getPassword(const QString& path);
// detects the archive type
void checkIf7zIsEncrypted(bool &, QString) Q_DECL_OVERRIDE;
private:
//! checks if a returned status ("exit code") of an archiving-related process is OK
static bool checkStatus(QString type, int exitCode);
static bool checkStatus(const QString& type, int exitCode);
static bool openWallet();
......
......@@ -35,7 +35,7 @@
#include <KI18n/KLocalizedString>
KrAddBookmarkDlg::KrAddBookmarkDlg(QWidget *parent, QUrl url):
KrAddBookmarkDlg::KrAddBookmarkDlg(QWidget *parent, const QUrl& url):
QDialog(parent)
{
setWindowModality(Qt::WindowModal);
......
......@@ -38,7 +38,7 @@ class KrAddBookmarkDlg: public QDialog
{
Q_OBJECT
public:
explicit KrAddBookmarkDlg(QWidget *parent, QUrl url = QUrl());
explicit KrAddBookmarkDlg(QWidget *parent, const QUrl& url = QUrl());
QUrl url() const {
return QUrl::fromUserInput(_url->text(), QString(), QUrl::AssumeLocalFile);
}
......
......@@ -28,6 +28,7 @@
#include <KI18n/KLocalizedString>
#include <KXmlGui/KActionCollection>
#include <utility>
#define BM_NAME(X) (QString("Bookmark:")+X)
......@@ -35,8 +36,8 @@ static const char* NAME_TRASH = I18N_NOOP("Trash bin");
static const char* NAME_VIRTUAL = I18N_NOOP("Virtual Filesystem");
static const char* NAME_LAN = I18N_NOOP("Local Network");
KrBookmark::KrBookmark(QString name, QUrl url, KActionCollection *parent, QString iconName, QString actionName) :
QAction(parent), _url(url), _iconName(iconName), _folder(false), _separator(false), _autoDelete(true)
KrBookmark::KrBookmark(const QString& name, QUrl url, KActionCollection *parent, const QString& iconName, const QString& actionName) :
QAction(parent), _url(std::move(url)), _iconName(iconName), _folder(false), _separator(false), _autoDelete(true)
{
QString actName = actionName.isNull() ? BM_NAME(name) : BM_NAME(actionName);
setText(name);
......@@ -46,7 +47,7 @@ KrBookmark::KrBookmark(QString name, QUrl url, KActionCollection *parent, QStrin
setIconName(iconName);
}
KrBookmark::KrBookmark(QString name, QString iconName) :
KrBookmark::KrBookmark(const QString& name, const QString& iconName) :
QAction(Icon(iconName), name, nullptr), _iconName(iconName), _folder(true), _separator(false), _autoDelete(false)
{
setIcon(Icon(iconName == "" ? "folder" : iconName));
......@@ -62,7 +63,7 @@ KrBookmark::~KrBookmark()
}
}
void KrBookmark::setIconName(QString iconName)
void KrBookmark::setIconName(const QString& iconName)
{
if (!iconName.isEmpty()) {
setIcon(Icon(iconName));
......@@ -75,7 +76,7 @@ void KrBookmark::setIconName(QString iconName)
}
}
KrBookmark * KrBookmark::getExistingBookmark(QString actionName, KActionCollection *collection)
KrBookmark * KrBookmark::getExistingBookmark(const QString& actionName, KActionCollection *collection)
{
return static_cast<KrBookmark*>(collection->action(BM_NAME(actionName)));
}
......
......@@ -36,14 +36,14 @@ class KrBookmark: public QAction
{
Q_OBJECT
public:
KrBookmark(QString name, QUrl url, KActionCollection *parent, QString iconName = "", QString actionName = QString());
explicit KrBookmark(QString name, QString iconName = ""); // creates a folder
KrBookmark(const QString& name, QUrl url, KActionCollection *parent, const QString& iconName = "", const QString& actionName = QString());
explicit KrBookmark(const QString& name, const QString& iconName = ""); // creates a folder
~KrBookmark() override;
// text() and setText() to change the name of the bookmark
// icon() and setIcon() to change icons
void setIconName(QString iconName);
void setIconName(const QString& iconName);
inline const QString& iconName() const {
return _iconName;
......@@ -65,7 +65,7 @@ public:
return _children;
}
static KrBookmark * getExistingBookmark(QString actionName, KActionCollection *collection);
static KrBookmark * getExistingBookmark(const QString& actionName, KActionCollection *collection);
// ----- special bookmarks
static KrBookmark * trash(KActionCollection *collection);
......
......@@ -48,6 +48,7 @@
#include <KWidgetsAddons/KMessageBox>
#include <KXmlGui/KActionCollection>
#include <KBookmarks/KBookmarkManager>
#include <utility>
#define SPECIAL_BOOKMARKS true
......@@ -103,7 +104,7 @@ KrBookmarkHandler::~KrBookmarkHandler()
void KrBookmarkHandler::bookmarkCurrent(QUrl url)
{
QPointer<KrAddBookmarkDlg> dlg = new KrAddBookmarkDlg(_mainWindow->widget(), url);
QPointer<KrAddBookmarkDlg> dlg = new KrAddBookmarkDlg(_mainWindow->widget(), std::move(url));
if (dlg->exec() == QDialog::Accepted) {
KrBookmark *bm = new KrBookmark(dlg->name(), dlg->url(), _collection);
addBookmark(bm, dlg->folder());
......@@ -230,7 +231,7 @@ void KrBookmarkHandler::exportToFile()
}
}
bool KrBookmarkHandler::importFromFileBookmark(QDomElement &e, KrBookmark *parent, QString path, QString *errorMsg)
bool KrBookmarkHandler::importFromFileBookmark(QDomElement &e, KrBookmark *parent, const QString& path, QString *errorMsg)
{
QString url, name, iconName;
// verify tag
......@@ -266,7 +267,7 @@ bool KrBookmarkHandler::importFromFileBookmark(QDomElement &e, KrBookmark *paren
return true;
}
bool KrBookmarkHandler::importFromFileFolder(QDomNode &first, KrBookmark *parent, QString path, QString *errorMsg)
bool KrBookmarkHandler::importFromFileFolder(QDomNode &first, KrBookmark *parent, const QString& path, QString *errorMsg)
{
QString name;
QDomNode n = first;
......
......@@ -56,8 +56,8 @@ public:
protected:
void deleteBookmark(KrBookmark *bm);
void importFromFile();
bool importFromFileBookmark(QDomElement &e, KrBookmark *parent, QString path, QString *errorMsg);
bool importFromFileFolder(QDomNode &first, KrBookmark *parent, QString path, QString *errorMsg);
bool importFromFileBookmark(QDomElement &e, KrBookmark *parent, const QString& path, QString *errorMsg);
bool importFromFileFolder(QDomNode &first, KrBookmark *parent, const QString& path, QString *errorMsg);
void exportToFile();
void exportToFileFolder(QDomDocument &doc, QDomElement &parent, KrBookmark *folder);
void exportToFileBookmark(QDomDocument &doc, QDomElement &where, KrBookmark *bm);
......
......@@ -209,7 +209,7 @@ QWizardPage *ChecksumWizard::createProgressPage(const QString &title)
return page;
}
bool ChecksumWizard::checkExists(const QString type)
bool ChecksumWizard::checkExists(const QString& type)
{
if (!KrServices::cmdExist(m_checksumTools[type])) {
KMessageBox::error(
......
......@@ -99,7 +99,7 @@ protected:
QWizardPage *createProgressPage(const QString &title);
bool checkExists(const QString type);
bool checkExists(const QString& type);
void runProcess(const QString &type, const QStringList &args);
void addChecksumLine(KrTreeWidget *tree, const QString &line);
......
......@@ -37,7 +37,7 @@
#include "../krglobal.h"
KRPleaseWait::KRPleaseWait(QString msg, QWidget *parent, int count, bool cancel):
KRPleaseWait::KRPleaseWait(const QString& msg, QWidget *parent, int count, bool cancel):
QProgressDialog(cancel ? nullptr : parent) , inc(true)
{
setModal(!cancel);
......@@ -105,7 +105,7 @@ void KRPleaseWaitHandler::stopWait()
}
void KRPleaseWaitHandler::startWaiting(QString msg, int count , bool cancel)
void KRPleaseWaitHandler::startWaiting(const QString& msg, int count , bool cancel)
{
if (dlg == nullptr) {
dlg = new KRPleaseWait(msg , _parentWindow, count, cancel);
......
......@@ -43,7 +43,7 @@ public:
public slots:
void startWaiting(QString msg, int count = 0, bool cancel = false);
void startWaiting(const QString& msg, int count = 0, bool cancel = false);
void stopWait();
void cycleProgress();
void incProgress(int i);
......@@ -65,7 +65,7 @@ class KRPleaseWait : public QProgressDialog
{
Q_OBJECT
public:
KRPleaseWait(QString msg, QWidget *parent, int count = 0 , bool cancel = false);
KRPleaseWait(const QString& msg, QWidget *parent, int count = 0 , bool cancel = false);
public slots:
void incProgress(int howMuch);
......
......@@ -30,6 +30,7 @@
#include <QPaintEvent>
#include <KI18n/KLocalizedString>
#include <utility>
/////////////////////////////////////////////////////////////////////////////
/////////////////////// Pie related widgets /////////////////////////////////
......@@ -57,7 +58,7 @@ QColor KRPie::colors[ 12 ] = {Qt::red, Qt::blue, Qt::green, Qt::cyan, Qt::magent
// This is the full constructor: use it for a mounted filesystem
KRFSDisplay::KRFSDisplay(QWidget *parent, QString _alias, QString _realName,
KIO::filesize_t _total, KIO::filesize_t _free) : QWidget(parent), totalSpace(_total),
freeSpace(_free), alias(_alias), realName(_realName), mounted(true),
freeSpace(_free), alias(std::move(_alias)), realName(std::move(_realName)), mounted(true),
empty(false), supermount(false)
{
......@@ -70,7 +71,7 @@ KRFSDisplay::KRFSDisplay(QWidget *parent, QString _alias, QString _realName,
// Use this one for an unmounted filesystem
KRFSDisplay::KRFSDisplay(QWidget *parent, QString _alias, QString _realName, bool sm) :
QWidget(parent), alias(_alias), realName(_realName), mounted(false),
QWidget(parent), alias(std::move(_alias)), realName(std::move(_realName)), mounted(false),
empty(false), supermount(sm)
{
......@@ -212,7 +213,7 @@ void KRPie::addSlice(KIO::filesize_t size, QString label)
{
int i = (slices.count() % 12);
slices.removeLast();
slices.push_back(KRPieSlice(size * 100 / totalSize, colors[ i ], label));
slices.push_back(KRPieSlice(size * 100 / totalSize, colors[ i ], std::move(label)));
sizeLeft -= size;
slices.push_back(KRPieSlice(sizeLeft * 100 / totalSize, Qt::yellow, "DEFAULT"));
}
......@@ -35,6 +35,7 @@
#include <KCompletion/KLineEdit>
#include <KIO/Global>
#include <utility>
class KRPieSlice;
......@@ -72,10 +73,10 @@ public:
freeSpace = t;
}
inline void setAlias(QString a) {
alias = a;
alias = std::move(a);
}
inline void setRealName(QString r) {
realName = r;
realName = std::move(r);
}
inline void setMounted(bool m) {
mounted = m;
......@@ -100,7 +101,7 @@ class KRPieSlice
{
public:
KRPieSlice(float _perct, QColor _color, QString _label) :
perct(_perct), color(_color), label(_label) {}
perct(_perct), color(std::move(_color)), label(std::move(_label)) {}
inline QColor getColor() {
return color;
}
......@@ -114,7 +115,7 @@ public:
perct = _perct;
}
inline void setLabel(QString _label) {
label = _label;
label = std::move(_label);
}
private:
......
......@@ -51,7 +51,7 @@ QStringList KRSpWidgets::maskList;
KRSpWidgets::KRSpWidgets()
= default;
KRQuery KRSpWidgets::getMask(QString caption, bool nameOnly, QWidget * parent)
KRQuery KRSpWidgets::getMask(const QString& caption, bool nameOnly, QWidget * parent)
{
if (!nameOnly) {
return FilterTabs::getQuery(parent);
......
......@@ -42,7 +42,7 @@ class KRSpWidgets
public:
KRSpWidgets();
static KRQuery getMask(QString caption, bool nameOnly = false, QWidget * parent = 0); // get file-mask for (un)selecting files
static KRQuery getMask(const QString& caption, bool nameOnly = false, QWidget * parent = 0); // get file-mask for (un)selecting files
static QUrl newFTP();
private:
......
......@@ -45,7 +45,7 @@ QString PackGUI::destination = nullptr;
QString PackGUI::type = nullptr;
QMap<QString, QString> PackGUI::extraProps;
PackGUI::PackGUI(QString defaultName, QString defaultPath, int noOfFiles, QString filename) :
PackGUI::PackGUI(const QString& defaultName, const QString& defaultPath, int noOfFiles, const QString& filename) :
PackGUIBase(nullptr)
{
// first, fill the WhatToPack textfield with information
......
......@@ -28,7 +28,7 @@ class PackGUI : public PackGUIBase
{
Q_OBJECT
public:
PackGUI(QString defaultName, QString defaultPath, int noOfFiles, QString filename = "");
PackGUI(const QString& defaultName, const QString& defaultPath, int noOfFiles, const QString& filename = "");
public slots:
void browse() Q_DECL_OVERRIDE;
......
......@@ -49,6 +49,7 @@
#include <KWidgetsAddons/KStandardGuiItem>
#include <KIO/Job>
#include <KIO/DeleteJob>
#include <utility>
#include "dufilelight.h"
#include "dulines.h"
......@@ -195,7 +196,7 @@ void LoaderWidget::slotCancelled()
}
DiskUsage::DiskUsage(QString confGroup, QWidget *parent) : QStackedWidget(parent),
currentDirectory(nullptr), root(nullptr), configGroup(confGroup), loading(false),
currentDirectory(nullptr), root(nullptr), configGroup(std::move(confGroup)), loading(false),
abortLoading(false), clearAfterAbort(false), deleting(false), searchFileSystem(nullptr)
{
listView = new DUListView(this);
......@@ -414,7 +415,7 @@ Directory * DiskUsage::getDirectory(QString dir)
return contentMap[ dir ];
}
File * DiskUsage::getFile(QString path)
File * DiskUsage::getFile(const QString& path)
{
if (path.isEmpty())
return root;
......@@ -654,7 +655,7 @@ int DiskUsage::del(File *file, bool calcPercents, int depth)
return deleteNr;
}
void * DiskUsage::getProperty(File *item, QString key)
void * DiskUsage::getProperty(File *item, const QString& key)
{
QHash< File *, Properties *>::iterator itr = propertyMap.find(item);
if (itr == propertyMap.end())
......@@ -667,7 +668,7 @@ void * DiskUsage::getProperty(File *item, QString key)
return it.value();
}
void DiskUsage::addProperty(File *item, QString key, void * prop)
void DiskUsage::addProperty(File *item, const QString& key, void * prop)
{
Properties *props;
QHash< File *, Properties *>::iterator itr = propertyMap.find(item);
......@@ -680,7 +681,7 @@ void DiskUsage::addProperty(File *item, QString key, void * prop)
props->insert(key, prop);
}