whitespace fix
This commit is contained in:
parent
1ae9a8875b
commit
e59c4d1a1c
|
@ -17,7 +17,7 @@ LibraryWatcher::LibraryWatcher(QObject* parent)
|
|||
: QObject(parent),
|
||||
fs_watcher_(new QFileSystemWatcher(this)),
|
||||
rescan_timer_(new QTimer(this)),
|
||||
total_watches_(0)
|
||||
total_watches_(0)
|
||||
{
|
||||
rescan_timer_->setInterval(1000);
|
||||
rescan_timer_->setSingleShot(true);
|
||||
|
@ -36,7 +36,7 @@ void LibraryWatcher::AddDirectories(const DirectoryList& directories) {
|
|||
|
||||
// Start monitoring this directory for more changes
|
||||
fs_watcher_->addPath(dir.path);
|
||||
++total_watches_;
|
||||
++total_watches_;
|
||||
|
||||
// And all the subdirectories
|
||||
QDirIterator it(dir.path,
|
||||
|
@ -46,12 +46,12 @@ void LibraryWatcher::AddDirectories(const DirectoryList& directories) {
|
|||
QString subdir(it.next());
|
||||
fs_watcher_->addPath(subdir);
|
||||
paths_watched_[subdir] = dir;
|
||||
#ifdef Q_OS_DARWIN
|
||||
if (++total_watches_ > kMaxWatches) {
|
||||
qWarning() << "Trying to watch more files than we can manage";
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
#ifdef Q_OS_DARWIN
|
||||
if (++total_watches_ > kMaxWatches) {
|
||||
qWarning() << "Trying to watch more files than we can manage";
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue