summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-06-16 19:08:02 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-06-19 14:56:48 +0000
commit54d91ecc4cedd07da6ff599285ac12168c146129 (patch)
tree8dfa676776d3e262facaa63b09c47604f059fe2a /samples
parent7ca47d55c9cbbec7e0a0b0beffffe348ae655086 (diff)
downloadpdfium-54d91ecc4cedd07da6ff599285ac12168c146129.tar.xz
Consistently pass FPDF handles by value.
Change-Id: I1b31217c756620873f59527768464aec02a82900 Reviewed-on: https://pdfium-review.googlesource.com/6677 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'samples')
-rw-r--r--samples/pdfium_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 5520fa4c26..86f6f89d24 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -755,8 +755,8 @@ FPDF_BOOL Is_Data_Avail(FX_FILEAVAIL* avail, size_t offset, size_t size) {
void Add_Segment(FX_DOWNLOADHINTS* hints, size_t offset, size_t size) {}
-void SendPageEvents(const FPDF_FORMHANDLE& form,
- const FPDF_PAGE& page,
+void SendPageEvents(FPDF_FORMHANDLE form,
+ FPDF_PAGE page,
const std::string& events) {
auto lines = StringSplit(events, '\n');
for (auto line : lines) {