summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_font
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-16 16:21:58 -0700
committerLei Zhang <thestig@chromium.org>2015-10-16 16:21:58 -0700
commit316e482630d5f5d9084edd9725f98a0d89a5bbdf (patch)
treed0da57af48d88a18e0cd7dca9093057316da4078 /core/src/fpdfapi/fpdf_font
parent3d7d1d2f29e5fb099367a40822684d31f684fd62 (diff)
downloadpdfium-316e482630d5f5d9084edd9725f98a0d89a5bbdf.tar.xz
Don't bother passing -1 as the length to the CFX_ByteString ctor.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1406363002 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_font')
-rw-r--r--core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp b/core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp
index 308dac9782..92d1719efe 100644
--- a/core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp
+++ b/core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp
@@ -1778,5 +1778,5 @@ FX_WCHAR PDF_UnicodeFromAdobeName(const FX_CHAR* name) {
CFX_ByteString PDF_AdobeNameFromUnicode(FX_WCHAR unicode) {
char glyph_name[64];
FXFT_adobe_name_from_unicode(glyph_name, unicode);
- return CFX_ByteString(glyph_name, -1);
+ return CFX_ByteString(glyph_name);
}