From f8f22c7ac7f3d4b922f40f67e910114e55b187b0 Mon Sep 17 00:00:00 2001 From: Andrew Weintraub Date: Fri, 8 Dec 2017 21:49:58 +0000 Subject: Fix build when using different sysroots. Bug: Change-Id: I86b4c72343288d83d51f493d3d888aad45baed5a Reviewed-on: https://pdfium-review.googlesource.com/20610 Reviewed-by: Lei Zhang Commit-Queue: Lei Zhang --- core/fpdfapi/font/cfx_cttgsubtable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fpdfapi') diff --git a/core/fpdfapi/font/cfx_cttgsubtable.cpp b/core/fpdfapi/font/cfx_cttgsubtable.cpp index 4870756ca0..ae868ca5ab 100644 --- a/core/fpdfapi/font/cfx_cttgsubtable.cpp +++ b/core/fpdfapi/font/cfx_cttgsubtable.cpp @@ -243,12 +243,12 @@ CFX_CTTGSUBTable::ParseCoverage(FT_Bytes raw) { if (format == 1) { auto rec = pdfium::MakeUnique(); ParseCoverageFormat1(raw, rec.get()); - return rec; + return std::move(rec); } if (format == 2) { auto rec = pdfium::MakeUnique(); ParseCoverageFormat2(raw, rec.get()); - return rec; + return std::move(rec); } return nullptr; } -- cgit v1.2.3