emfio/source/reader/mtftools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 4d8907a7d5be6c81f68ab36353c231ad23681780 Author: Stephan Bergmann <[email protected]> AuthorDate: Thu Nov 10 18:50:34 2022 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Fri Nov 11 11:31:18 2022 +0100 Revert useless std::move of const object ...added with f71606c920a3f78294da745cd9ef1eacde010224 "new loplugin:moveit". (I came across this code with an upcoming loplugin:constmove that flags suspicious uses of std::move involving const-qualified types.) Change-Id: If9c79d9a838fab5efbb55cb89b27b87f7e7ccd76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142562 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <[email protected]> diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx index 02643b202ef8..7acb1a2b7c1f 100644 --- a/emfio/source/reader/mtftools.cxx +++ b/emfio/source/reader/mtftools.cxx @@ -1330,7 +1330,7 @@ namespace emfio maFillStyle = maBkColor; mnBkMode = BackgroundMode::OPAQUE; ImplSetNonPersistentLineColorTransparenz(); - DrawPolygon(std::move(aPoly), false); + DrawPolygon(aPoly, false); mnBkMode = mnBkModeBackup; // The rectangle needs to be always drawned even if mode is transparent maFillStyle = aFillStyleBackup; maLineStyle.bTransparent = aTransparentBackup;
