mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Renamed a member variable to have underscore prefix for consistency
This commit is contained in:
parent
89a4833cae
commit
aee4c06b8d
@ -34,9 +34,9 @@ FolderWatcherPrivate::FolderWatcherPrivate(FolderWatcher *p, const QString& path
|
||||
|
||||
FolderWatcherPrivate::~FolderWatcherPrivate()
|
||||
{
|
||||
FSEventStreamStop(stream);
|
||||
FSEventStreamInvalidate(stream);
|
||||
FSEventStreamRelease(stream);
|
||||
FSEventStreamStop(_stream);
|
||||
FSEventStreamInvalidate(_stream);
|
||||
FSEventStreamRelease(_stream);
|
||||
}
|
||||
|
||||
static void callback(
|
||||
@ -76,7 +76,7 @@ void FolderWatcherPrivate::startWatching()
|
||||
|
||||
// TODO: Add kFSEventStreamCreateFlagFileEvents ?
|
||||
|
||||
stream = FSEventStreamCreate(NULL,
|
||||
_stream = FSEventStreamCreate(NULL,
|
||||
&callback,
|
||||
&ctx,
|
||||
pathsToWatch,
|
||||
@ -86,8 +86,8 @@ void FolderWatcherPrivate::startWatching()
|
||||
);
|
||||
|
||||
CFRelease(pathsToWatch);
|
||||
FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||
FSEventStreamStart(stream);
|
||||
FSEventStreamScheduleWithRunLoop(_stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||
FSEventStreamStart(_stream);
|
||||
}
|
||||
|
||||
void FolderWatcherPrivate::doNotifyParent(const QStringList &paths) {
|
||||
|
||||
@ -41,7 +41,7 @@ private:
|
||||
|
||||
QString _folder;
|
||||
|
||||
FSEventStreamRef stream;
|
||||
FSEventStreamRef _stream;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user