summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-01-19 07:43:46 -0500
committerJan Holesovsky <kendy@collabora.com>2019-01-22 16:00:35 +0100
commit85843ff92db37a63081a3fed9ff583f7e4d67cb6 (patch)
treef24e7b424d3b627103ca0d120d8a9ad08daf4ae9 /editeng
parentd09ca3697bfbff8c6851a1088c594d7d6426bd93 (diff)
editeng: vcl: fix warnings
warning: local variable 'aFont' will be copied despite being returned by name [-Wreturn-std-move] note: call 'std::move' explicitly to avoid copying And remove unused local variable. Change-Id: I485b690beff33db769866358c69391465bc44fcd
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editeng.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx
index a3679f5809b1..6116d702242b 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -2624,7 +2624,7 @@ vcl::Font EditEngine::CreateFontFromItemSet( const SfxItemSet& rItemSet, SvtScri
{
SvxFont aFont;
CreateFont( aFont, rItemSet, true, nScriptType );
- return aFont;
+ return std::move(aFont);
}
SvxFont EditEngine::CreateSvxFontFromItemSet( const SfxItemSet& rItemSet )