Renamed a member variable to have underscore prefix for consistency

This commit is contained in:
Denis Dzyubenko 2014-02-19 00:46:48 +01:00
parent 89a4833cae
commit aee4c06b8d
2 changed files with 7 additions and 7 deletions

View File

@ -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) {

View File

@ -41,7 +41,7 @@ private:
QString _folder;
FSEventStreamRef stream;
FSEventStreamRef _stream;
};
}