mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 21:52:32 -06:00
Initialize pointer to a default value
This commit is contained in:
@@ -76,9 +76,9 @@ namespace Utils::IO
|
||||
}
|
||||
|
||||
private:
|
||||
QFileDevice *m_device;
|
||||
QFileDevice *m_device = nullptr;
|
||||
std::shared_ptr<QByteArray> m_buffer;
|
||||
int m_bufferSize;
|
||||
int m_bufferSize = 0;
|
||||
};
|
||||
|
||||
nonstd::expected<void, QString> saveToFile(const Path &path, const QByteArray &data);
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace
|
||||
}
|
||||
|
||||
private:
|
||||
FILE *m_randDev;
|
||||
FILE *m_randDev = nullptr;
|
||||
};
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user