diff options
author | Jonathan White <support@dmapps.us> | 2019-01-20 17:50:20 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2019-01-29 06:38:59 +0300 |
commit | 7e1b16250c8a3b7854030c86af941d0b83d4a0b9 (patch) | |
tree | 83fe30abc4e1e22f6ae5891cb2bf354e0dc90260 /src/core/FileWatcher.cpp | |
parent | c74664097b010b1c463011ec6ea07fd5c392a178 (diff) |
Performed project-wide code formatting
* Updated format CMake command to properly
ignore new directories and files
* Added output when command is run
* Resolves #2623
Diffstat (limited to 'src/core/FileWatcher.cpp')
-rw-r--r-- | src/core/FileWatcher.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/FileWatcher.cpp b/src/core/FileWatcher.cpp index d57d7de52..d7056f9c7 100644 --- a/src/core/FileWatcher.cpp +++ b/src/core/FileWatcher.cpp @@ -29,7 +29,7 @@ namespace { const int FileChangeDelay = 500; const int TimerResolution = 100; -} +} // namespace DelayingFileWatcher::DelayingFileWatcher(QObject* parent) : QObject(parent) @@ -238,13 +238,13 @@ void BulkFileWatcher::emitSignals() { QMap<QString, QList<Signal>> queued; m_pendingSignals.swap(queued); - for (const auto& path : queued.keys()){ - const auto &signal = queued[path]; + for (const auto& path : queued.keys()) { + const auto& signal = queued[path]; if (signal.last() == Removed) { emit fileRemoved(path); continue; } - if (signal.first() == Created){ + if (signal.first() == Created) { emit fileCreated(path); continue; } @@ -252,7 +252,7 @@ void BulkFileWatcher::emitSignals() } } -void BulkFileWatcher::scheduleSignal(Signal signal, const QString &path) +void BulkFileWatcher::scheduleSignal(Signal signal, const QString& path) { // we need to collect signals since the file watcher API may send multiple signals for a "single" change // therefore we wait until the event loop finished before starting to import any changes |