From 60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 21 May 2023 13:35:09 -0400 Subject: Rerun clang-format --- examples/pdf-set-form-values.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'examples/pdf-set-form-values.cc') diff --git a/examples/pdf-set-form-values.cc b/examples/pdf-set-form-values.cc index a41cb3f7..c2793142 100644 --- a/examples/pdf-set-form-values.cc +++ b/examples/pdf-set-form-values.cc @@ -11,10 +11,8 @@ static char const* whoami = nullptr; void usage() { - std::cerr << "Usage: " << whoami << " infile.pdf outfile.pdf value" - << std::endl - << "Set the value of all text fields to a specified value" - << std::endl; + std::cerr << "Usage: " << whoami << " infile.pdf outfile.pdf value" << std::endl + << "Set the value of all text fields to a specified value" << std::endl; exit(2); } @@ -55,8 +53,7 @@ main(int argc, char* argv[]) for (auto& annot: afdh.getWidgetAnnotationsForPage(page)) { // For each annotation, find its associated field. If // it's a text field, set its value. - QPDFFormFieldObjectHelper ffh = - afdh.getFieldForAnnotation(annot); + QPDFFormFieldObjectHelper ffh = afdh.getFieldForAnnotation(annot); if (ffh.getFieldType() == "/Tx") { // Set the value. Passing false as the second // value prevents qpdf from setting @@ -79,8 +76,7 @@ main(int argc, char* argv[]) w.setStaticID(true); // for testing only w.write(); } catch (std::exception& e) { - std::cerr << whoami << " processing file " << infilename << ": " - << e.what() << std::endl; + std::cerr << whoami << " processing file " << infilename << ": " << e.what() << std::endl; exit(2); } -- cgit v1.2.3-70-g09d2