Commit 9608aa7f authored by Laurent Montel's avatar Laurent Montel 😁

Fix clazy warning

parent 82ab6cae
......@@ -927,7 +927,7 @@ bool Archiver::getNextSlice()
QString prefix = filePrefix.isEmpty() ? QStringLiteral("backup") : filePrefix;
if ( targetURL.isLocalFile() )
baseName = targetURL.path() + QLatin1Char('/') + prefix + QDateTime::currentDateTime().toString(QLatin1String("_yyyy.MM.dd-hh.mm.ss"));
baseName = targetURL.path() + QLatin1Char('/') + prefix + QDateTime::currentDateTime().toString(QStringLiteral("_yyyy.MM.dd-hh.mm.ss"));
else
baseName = QDir::tempPath() + QLatin1Char('/') + prefix + QDateTime::currentDateTime().toString(QStringLiteral("_yyyy.MM.dd-hh.mm.ss"));
}
......@@ -969,7 +969,7 @@ bool Archiver::getNextSlice()
//--------------------------------------------------------------------------------
void Archiver::emitArchiveError() const
void Archiver::emitArchiveError()
{
QString err;
......
......@@ -108,17 +108,17 @@ class Archiver : public QObject
void setForceFullBackup(bool force = true);
Q_SIGNALS:
void inProgress(bool runs) const;
void logging(const QString &) const;
void warning(const QString &) const;
void targetCapacity(KIO::filesize_t bytes) const;
void sliceProgress(int percent) const;
void fileProgress(int percent) const;
void newSlice(int) const;
void totalFilesChanged(int) const;
void totalBytesChanged(KIO::filesize_t) const;
void elapsedChanged(const QTime &) const;
void backupTypeChanged(bool incremental) const;
void inProgress(bool runs);
void logging(const QString &);
void warning(const QString &);
void targetCapacity(KIO::filesize_t bytes);
void sliceProgress(int percent);
void fileProgress(int percent);
void newSlice(int);
void totalFilesChanged(int);
void totalBytesChanged(KIO::filesize_t);
void elapsedChanged(const QTime &);
void backupTypeChanged(bool incremental);
private Q_SLOTS:
void slotResult(KJob *);
......@@ -150,7 +150,7 @@ class Archiver : public QObject
// return true if given fileName matches any of the defined filters
bool fileIsFiltered(const QString &fileName) const;
void emitArchiveError() const;
void emitArchiveError();
static bool UDSlessThan(const KIO::UDSEntry &left, const KIO::UDSEntry &right);
......
......@@ -261,7 +261,7 @@ Selector::Selector(QWidget *parent, KActionCollection *actionCollection)
QFileInfo info(QStringLiteral("/"));
item->setSize(info.size());
item->setLastModified(info.lastModified());
item->setIcon(QIcon::fromTheme(QLatin1String("folder")));
item->setIcon(QIcon::fromTheme(QStringLiteral("folder")));
setExpanded(item->index(), true);
fillTree(item, QStringLiteral("/"), false);
......
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