mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix -Wredundant-move and -Wdeprecated-copy warnings (#6663)
* Do not move result at end of function This makes GCC 9.1.2 happy with the active -Wredundant-move warning. Indeed, such moving of local variables or local arguments before returning is unnecessary and prevents the compiler from copy elision optimization.
This commit is contained in:
committed by
John Preston
parent
a196b0aba7
commit
793862bee6
@@ -878,7 +878,7 @@ object_ptr<TabbedSelector::InnerFooter> StickersListWidget::createFooter() {
|
||||
|
||||
auto result = object_ptr<Footer>(this);
|
||||
_footer = result;
|
||||
return std::move(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void StickersListWidget::visibleTopBottomUpdated(
|
||||
|
Reference in New Issue
Block a user