diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2017-09-05 12:07:02 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-09-05 17:27:26 +0000 |
commit | 1eae16d3b17d6b396969ecf81f6546f5a1d72dfd (patch) | |
tree | 6819d423b15bd05d68b296c6769a6bf531850dbe /fxbarcode/cbc_code128.cpp | |
parent | e7767a0c98548395c95b9f88fc30cf7b318f1939 (diff) | |
download | pdfium-1eae16d3b17d6b396969ecf81f6546f5a1d72dfd.tar.xz |
Remove isDevice parameter from barcode Render().
isDevice is currently false in tests and fuzzers and true in real
usage. This CL changes it all to true.
Change-Id: Idea14795d7f0bb70031e04e5c58e248de72fd39e
Reviewed-on: https://pdfium-review.googlesource.com/13130
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxbarcode/cbc_code128.cpp')
-rw-r--r-- | fxbarcode/cbc_code128.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fxbarcode/cbc_code128.cpp b/fxbarcode/cbc_code128.cpp index 93a4ae88f4..d802b28a17 100644 --- a/fxbarcode/cbc_code128.cpp +++ b/fxbarcode/cbc_code128.cpp @@ -35,7 +35,7 @@ bool CBC_Code128::SetTextLocation(BC_TEXT_LOC location) { return GetOnedCode128Writer()->SetTextLocation(location); } -bool CBC_Code128::Encode(const CFX_WideStringC& contents, bool isDevice) { +bool CBC_Code128::Encode(const CFX_WideStringC& contents) { if (contents.IsEmpty()) return false; @@ -54,8 +54,8 @@ bool CBC_Code128::Encode(const CFX_WideStringC& contents, bool isDevice) { pWriter->Encode(byteString, format, outWidth, outHeight)); if (!data) return false; - return pWriter->RenderResult(encodeContents.AsStringC(), data.get(), outWidth, - isDevice); + return pWriter->RenderResult(encodeContents.AsStringC(), data.get(), + outWidth); } bool CBC_Code128::RenderDevice(CFX_RenderDevice* device, |