Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Issue 1889003002: Avoid string allocs for CMap_GetString() return value. (Closed)

Created:
4 years, 8 months ago by Tom Sepez
Modified:
4 years, 8 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Avoid string allocs for CMap_GetString() return value. StringC's are all that's needed here. Also CMap_GetString() and GetCode() are side-effect free, so remove calls where the value is not used. Committed: https://pdfium.googlesource.com/pdfium/+/b1c80fb8b843a2a345b2cd6005e591dc731355f4

Patch Set 1 #

Patch Set 2 : Remove some calls where the result is not used. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -7 lines) Patch
M core/fpdfapi/fpdf_font/cpdf_cidfont.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_font/font_int.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_font/fpdf_font_cid.cpp View 1 3 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
Tom Sepez
Lei, for review.
4 years, 8 months ago (2016-04-15 00:43:06 UTC) #3
Lei Zhang
lgtm
4 years, 8 months ago (2016-04-15 01:14:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889003002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1889003002/20001
4 years, 8 months ago (2016-04-15 01:16:48 UTC) #6
commit-bot: I haz the power
4 years, 8 months ago (2016-04-15 01:17:06 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/b1c80fb8b843a2a345b2cd6005e591dc7313...

Powered by Google App Engine
This is Rietveld 408576698