aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qpdf-job.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-01 19:49:11 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-01 19:50:58 +0100
commit42bff9f4584362f2084033795896c2e891274631 (patch)
tree4c317d9db160535848b036f47dd646884e1d6ab0 /examples/qpdf-job.cc
parenta0d9d9923ce397d46680a9b180f253b39135ece2 (diff)
downloadqpdf-42bff9f4584362f2084033795896c2e891274631.tar.zst
QPDFJob: let initializeFromArgv just take argv, not argc
Let argv be a null-terminated array. There is already code that assumes this, and it makes it easier to construct the arguments.
Diffstat (limited to 'examples/qpdf-job.cc')
-rw-r--r--examples/qpdf-job.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qpdf-job.cc b/examples/qpdf-job.cc
index d1760897..29f23a34 100644
--- a/examples/qpdf-job.cc
+++ b/examples/qpdf-job.cc
@@ -82,7 +82,7 @@ int main(int argc, char* argv[])
nullptr
};
QPDFJob j;
- j.initializeFromArgv(9, new_argv);
+ j.initializeFromArgv(new_argv);
j.run();
std::cout << "out2 status: " << j.getExitCode() << std::endl;
}