Commit cf6c56a4630dc279d2d1a565123ec1e9baa8d72b

Authored by Jay Berkenbilt
1 parent 2c7b583b

QPDFJob: use config API in place-holder json

Showing 1 changed file with 4 additions and 3 deletions
libqpdf/QPDFJob_argv.cc
... ... @@ -564,15 +564,16 @@ QPDFJob::initializeFromJson(std::string const& json)
564 564  
565 565 input_file_name->addStringHandler(
566 566 [this](std::string const&, std::string const& v) {
567   - this->infilename = QUtil::make_shared_cstr(v);
  567 + config()->inputFile(v.c_str());
568 568 });
569 569 output_file_name->addStringHandler(
570 570 [this](std::string const&, std::string const& v) {
571   - this->outfilename = QUtil::make_shared_cstr(v);
  571 + config()->outputFile(v.c_str());
572 572 });
573 573 output_options_qdf->addBoolHandler(
574 574 [this](std::string const&, bool v) {
575   - this->qdf_mode = v;
  575 + // QXXXQ require v to be true
  576 + config()->qdf();
576 577 });
577 578 }
578 579  
... ...