diff --git a/Telegram/SourceFiles/history/history_item_text.cpp b/Telegram/SourceFiles/history/history_item_text.cpp
index a5c5bf9eb..e5f10588c 100644
--- a/Telegram/SourceFiles/history/history_item_text.cpp
+++ b/Telegram/SourceFiles/history/history_item_text.cpp
@@ -68,7 +68,7 @@ TextWithEntities WrapAsItem(
 	if (const auto forwarded = item->Get<HistoryMessageForwarded>()) {
 		result = WrapAsForwarded(std::move(result), forwarded);
 	}
-	return result;
+	return std::move(result);
 }
 
 TextWithEntities HistoryItemText(not_null<HistoryItem*> item) {
diff --git a/Telegram/SourceFiles/media/streaming/media_streaming_loader_mtproto.h b/Telegram/SourceFiles/media/streaming/media_streaming_loader_mtproto.h
index 83300f6c6..f52a0bb98 100644
--- a/Telegram/SourceFiles/media/streaming/media_streaming_loader_mtproto.h
+++ b/Telegram/SourceFiles/media/streaming/media_streaming_loader_mtproto.h
@@ -55,7 +55,6 @@ private:
 		const QVector<MTPFileHash> &hashes);
 
 	const not_null<ApiWrap*> _api;
-	const MTP::DcId _dcId = 0;
 
 	// _location can be changed with an updated file_reference.
 	StorageFileLocation _location;
diff --git a/Telegram/SourceFiles/passport/passport_form_view_controller.cpp b/Telegram/SourceFiles/passport/passport_form_view_controller.cpp
index 3cff0e2e0..95e1fbfeb 100644
--- a/Telegram/SourceFiles/passport/passport_form_view_controller.cpp
+++ b/Telegram/SourceFiles/passport/passport_form_view_controller.cpp
@@ -524,7 +524,7 @@ ScopeRow ComputeScopeRow(const Scope &scope) {
 				}
 			}
 		}
-		return row;
+		return std::move(row);
 	};
 	switch (scope.type) {
 	case Scope::Type::PersonalDetails:
diff --git a/Telegram/SourceFiles/ui/image/image_location.cpp b/Telegram/SourceFiles/ui/image/image_location.cpp
index ba79e89d2..7c91b971c 100644
--- a/Telegram/SourceFiles/ui/image/image_location.cpp
+++ b/Telegram/SourceFiles/ui/image/image_location.cpp
@@ -343,8 +343,6 @@ Storage::Cache::Key StorageFileLocation::cacheKey() const {
 }
 
 Storage::Cache::Key StorageFileLocation::bigFileBaseCacheKey() const {
-	using Key = Storage::Cache::Key;
-
 	// Skip '1' and '2' for legacy document cache keys.
 	const auto shifted = ((uint64(_type) + 3) << 8);
 	const auto sliced = uint64(_dcId) & 0xFFULL;