Closed alpha version 1.6.3.1: Fix build for Xcode.

This commit is contained in:
John Preston 2019-03-26 18:00:47 +04:00
parent 5c0f278775
commit 84e9e37353
4 changed files with 2 additions and 5 deletions

View File

@ -68,7 +68,7 @@ TextWithEntities WrapAsItem(
if (const auto forwarded = item->Get<HistoryMessageForwarded>()) { if (const auto forwarded = item->Get<HistoryMessageForwarded>()) {
result = WrapAsForwarded(std::move(result), forwarded); result = WrapAsForwarded(std::move(result), forwarded);
} }
return result; return std::move(result);
} }
TextWithEntities HistoryItemText(not_null<HistoryItem*> item) { TextWithEntities HistoryItemText(not_null<HistoryItem*> item) {

View File

@ -55,7 +55,6 @@ private:
const QVector<MTPFileHash> &hashes); const QVector<MTPFileHash> &hashes);
const not_null<ApiWrap*> _api; const not_null<ApiWrap*> _api;
const MTP::DcId _dcId = 0;
// _location can be changed with an updated file_reference. // _location can be changed with an updated file_reference.
StorageFileLocation _location; StorageFileLocation _location;

View File

@ -524,7 +524,7 @@ ScopeRow ComputeScopeRow(const Scope &scope) {
} }
} }
} }
return row; return std::move(row);
}; };
switch (scope.type) { switch (scope.type) {
case Scope::Type::PersonalDetails: case Scope::Type::PersonalDetails:

View File

@ -343,8 +343,6 @@ Storage::Cache::Key StorageFileLocation::cacheKey() const {
} }
Storage::Cache::Key StorageFileLocation::bigFileBaseCacheKey() const { Storage::Cache::Key StorageFileLocation::bigFileBaseCacheKey() const {
using Key = Storage::Cache::Key;
// Skip '1' and '2' for legacy document cache keys. // Skip '1' and '2' for legacy document cache keys.
const auto shifted = ((uint64(_type) + 3) << 8); const auto shifted = ((uint64(_type) + 3) << 8);
const auto sliced = uint64(_dcId) & 0xFFULL; const auto sliced = uint64(_dcId) & 0xFFULL;