Kaydet (Commit) f0b3e224 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror,-Wreturn-std-move

("local variable 'aFont' will be copied despite being returned by name"; emitted
by Clang trunk)

Change-Id: I4c876ec5b92b55ae5d1cc72a0e993d96d88c8071
Reviewed-on: https://gerrit.libreoffice.org/52812Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst f8072cc8
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
*/ */
#include <memory> #include <memory>
#include <utility>
#include <comphelper/lok.hxx> #include <comphelper/lok.hxx>
#include <vcl/wrkwin.hxx> #include <vcl/wrkwin.hxx>
#include <vcl/dialog.hxx> #include <vcl/dialog.hxx>
...@@ -2648,7 +2650,7 @@ vcl::Font EditEngine::CreateFontFromItemSet( const SfxItemSet& rItemSet, SvtScri ...@@ -2648,7 +2650,7 @@ vcl::Font EditEngine::CreateFontFromItemSet( const SfxItemSet& rItemSet, SvtScri
{ {
SvxFont aFont; SvxFont aFont;
CreateFont( aFont, rItemSet, true, nScriptType ); CreateFont( aFont, rItemSet, true, nScriptType );
return aFont; return std::move(aFont);
} }
SvxFont EditEngine::CreateSvxFontFromItemSet( const SfxItemSet& rItemSet ) SvxFont EditEngine::CreateSvxFontFromItemSet( const SfxItemSet& rItemSet )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment