From a0a69233cafa0ec22fd6c776851e3ee069ca66bf Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 1 May 2017 11:39:33 -0700 Subject: Remove more |new|s, part 5 Many of these are already unique_ptrs. Change-Id: I3695d4ff5a8f7483ad994ac7657897fd55069cd5 Reviewed-on: https://pdfium-review.googlesource.com/4690 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fxbarcode/oned/BC_OneDimWriter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fxbarcode/oned/BC_OneDimWriter.cpp') diff --git a/fxbarcode/oned/BC_OneDimWriter.cpp b/fxbarcode/oned/BC_OneDimWriter.cpp index b898340519..14c5911f95 100644 --- a/fxbarcode/oned/BC_OneDimWriter.cpp +++ b/fxbarcode/oned/BC_OneDimWriter.cpp @@ -135,8 +135,8 @@ void CBC_OneDimWriter::CalcTextInfo(const CFX_ByteString& text, float geWidth, int32_t fontSize, float& charsLen) { - std::unique_ptr encoding( - FX_CreateFontEncodingEx(cFont)); + std::unique_ptr encoding = + FX_CreateFontEncodingEx(cFont, FXFM_ENCODING_NONE); int32_t length = text.GetLength(); uint32_t* pCharCode = FX_Alloc(uint32_t, text.GetLength()); -- cgit v1.2.3