-Werror,-Wreturn-std-move (recent Clang trunk)

Desktop / LibreOffice - Stephan Bergmann [redhat.com] - 16 April 2018 07:42 EDT

An explicit std::move would be needed in the return statements, as there's a conversion from VclPtrInstance to base class VclPtr involved. One more reason to better get rid of VclPtrInstance completely in favor of VclPtr::Create, as already mentioned in "VclPtr some improvements ?"

74b6e61dde64 -Werror,-Wreturn-std-move (recent Clang trunk)
sfx2/source/dialog/infobar.cxx | 2 +-
sfx2/source/sidebar/SidebarController.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share