kio: format and indent

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-03 20:35:43 +03:00
parent 103bc5a7d9
commit 954e45641e

View file

@ -36,8 +36,11 @@
using namespace KIO;
static const char* undoStateToString(UndoState state) {
static const char* const s_undoStateToString[] = { "MAKINGDIRS", "MOVINGFILES", "STATINGFILE", "REMOVINGDIRS", "REMOVINGLINKS" };
static const char* undoStateToString(UndoState state)
{
static const char* const s_undoStateToString[] = {
"MAKINGDIRS", "MOVINGFILES", "STATINGFILE", "REMOVINGDIRS", "REMOVINGLINKS"
};
return s_undoStateToString[state];
}
@ -392,7 +395,7 @@ void FileUndoManagerPrivate::slotResult(KJob *job)
KIO::StatJob* statJob = static_cast<KIO::StatJob*>(job);
time_t mtime = statJob->statResult().numberValue(KIO::UDSEntry::UDS_MODIFICATION_TIME, -1);
if (mtime != op.m_mtime) {
kDebug() << op.m_dst << " was modified after being copied!";
kDebug() << op.m_dst << "was modified after being copied!";
QDateTime srcTime; srcTime.setTime_t(op.m_mtime); srcTime = srcTime.toLocalTime();
QDateTime destTime; destTime.setTime_t(mtime); destTime = destTime.toLocalTime();
if (!m_uiInterface->copiedFileWasModified(op.m_src, op.m_dst, srcTime, destTime)) {