Fix uninitialized variables

This commit is contained in:
Jonas Kvinge
2021-03-26 21:30:13 +01:00
parent 8a39a43ad5
commit 14fb647647
27 changed files with 64 additions and 65 deletions

View File

@@ -33,11 +33,11 @@ FileSystemWatcherInterface::FileSystemWatcherInterface(QObject *parent)
: QObject(parent) {}
FileSystemWatcherInterface *FileSystemWatcherInterface::Create(QObject *parent) {
FileSystemWatcherInterface *ret;
#ifdef Q_OS_MACOS
ret = new MacFSListener(parent);
FileSystemWatcherInterface *ret = new MacFSListener(parent);
#else
ret = new QtFSListener(parent);
FileSystemWatcherInterface *ret = new QtFSListener(parent);
#endif
ret->Init();