whitespace fix

This commit is contained in:
John Maguire 2010-02-15 10:23:29 +00:00
parent 1ae9a8875b
commit e59c4d1a1c
1 changed files with 8 additions and 8 deletions

View File

@ -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
}
}
}