mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Use QSaveFile wherever applicable
expected.hpp was fetched from:
b803e3c07b/include/nonstd/expected.hpp
This commit is contained in:
parent
81139c0098
commit
21f72baae2
17 changed files with 2597 additions and 88 deletions
|
@ -31,8 +31,13 @@
|
|||
#include <iterator>
|
||||
#include <memory>
|
||||
|
||||
#include <libtorrent/fwd.hpp>
|
||||
|
||||
#include "base/3rdparty/expected.hpp"
|
||||
|
||||
class QByteArray;
|
||||
class QFileDevice;
|
||||
class QString;
|
||||
|
||||
namespace Utils::IO
|
||||
{
|
||||
|
@ -74,4 +79,7 @@ namespace Utils::IO
|
|||
std::shared_ptr<QByteArray> m_buffer;
|
||||
int m_bufferSize;
|
||||
};
|
||||
|
||||
nonstd::expected<void, QString> saveToFile(const QString &path, const QByteArray &data);
|
||||
nonstd::expected<void, QString> saveToFile(const QString &path, const lt::entry &data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue