mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +02:00
Fix -Wredundant-move
This commit is contained in:
parent
e050055c1e
commit
3c0694280f
1 changed files with 2 additions and 3 deletions
|
@ -286,7 +286,6 @@ std::optional<PreparedList> PreparedList::PreparedFileFromFilesDialog(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!result.remoteContent.isEmpty()) {
|
if (!result.remoteContent.isEmpty()) {
|
||||||
|
|
||||||
auto list = Storage::PrepareMediaFromImage(
|
auto list = Storage::PrepareMediaFromImage(
|
||||||
QImage(),
|
QImage(),
|
||||||
std::move(result.remoteContent),
|
std::move(result.remoteContent),
|
||||||
|
@ -311,7 +310,7 @@ std::optional<PreparedList> PreparedList::PreparedFileFromFilesDialog(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Expects(list.files.size() == 1);
|
Expects(list.files.size() == 1);
|
||||||
return std::move(list);
|
return list;
|
||||||
} else if (!result.paths.isEmpty()) {
|
} else if (!result.paths.isEmpty()) {
|
||||||
const auto isSingleFile = (result.paths.size() == 1);
|
const auto isSingleFile = (result.paths.size() == 1);
|
||||||
auto temp = Storage::PrepareMediaList(result.paths, previewWidth);
|
auto temp = Storage::PrepareMediaList(result.paths, previewWidth);
|
||||||
|
@ -366,7 +365,7 @@ std::optional<PreparedList> PreparedList::PreparedFileFromFilesDialog(
|
||||||
list.allFilesForCompress = temp.allFilesForCompress;
|
list.allFilesForCompress = temp.allFilesForCompress;
|
||||||
list.files = std::move(filteredFiles);
|
list.files = std::move(filteredFiles);
|
||||||
|
|
||||||
return std::move(list);
|
return list;
|
||||||
}
|
}
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue