2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Move to std::optional.

This commit is contained in:
John Preston
2018-09-21 19:28:46 +03:00
parent 850efbde95
commit 2e5a0e056c
115 changed files with 632 additions and 672 deletions

View File

@@ -153,7 +153,7 @@ protected:
bool tryLoadLocal();
void loadLocal(const Storage::Cache::Key &key);
virtual base::optional<Storage::Cache::Key> cacheKey() const = 0;
virtual std::optional<Storage::Cache::Key> cacheKey() const = 0;
virtual void cancelRequests() = 0;
void startLoading(bool loadFirst, bool prior);
@@ -257,7 +257,7 @@ private:
int limit = 0;
QByteArray hash;
};
base::optional<Storage::Cache::Key> cacheKey() const override;
std::optional<Storage::Cache::Key> cacheKey() const override;
void cancelRequests() override;
int partSize() const;
@@ -346,7 +346,7 @@ public:
protected:
void cancelRequests() override;
base::optional<Storage::Cache::Key> cacheKey() const override;
std::optional<Storage::Cache::Key> cacheKey() const override;
bool loadPart() override;
QString _url;