From acfc9db0515559cdcc56104ba1ec2082b09b0b8f Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 28 Jan 2023 13:23:18 -0500 Subject: QPDFJob: switch to C++11-style field initializers --- libqpdf/QPDFJob.cc | 115 +---------------------------------------------------- 1 file changed, 1 insertion(+), 114 deletions(-) (limited to 'libqpdf/QPDFJob.cc') diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc index 01e4a22a..c46e1951 100644 --- a/libqpdf/QPDFJob.cc +++ b/libqpdf/QPDFJob.cc @@ -304,121 +304,8 @@ ProgressReporter::reportProgress(int percentage) << "%\n"; } -// These default values are duplicated in help and docs. -static int constexpr DEFAULT_KEEP_FILES_OPEN_THRESHOLD = 200; -static int constexpr DEFAULT_OI_MIN_WIDTH = 128; -static int constexpr DEFAULT_OI_MIN_HEIGHT = 128; -static int constexpr DEFAULT_OI_MIN_AREA = 16384; -static int constexpr DEFAULT_II_MIN_BYTES = 1024; - QPDFJob::Members::Members() : - log(QPDFLogger::defaultLogger()), - message_prefix("qpdf"), - warnings(false), - encryption_status(0), - verbose(false), - password(nullptr), - linearize(false), - decrypt(false), - split_pages(0), - progress(false), - progress_handler(nullptr), - suppress_warnings(false), - warnings_exit_zero(false), - copy_encryption(false), - encryption_file_password(nullptr), - encrypt(false), - password_is_hex_key(false), - suppress_password_recovery(false), - password_mode(pm_auto), - allow_insecure(false), - allow_weak_crypto(false), - keylen(0), - r2_print(true), - r2_modify(true), - r2_extract(true), - r2_annotate(true), - r3_accessibility(true), - r3_extract(true), - r3_assemble(true), - r3_annotate_and_form(true), - r3_form_filling(true), - r3_modify_other(true), - r3_print(qpdf_r3p_full), - force_V4(false), - force_R5(false), - cleartext_metadata(false), - use_aes(false), - stream_data_set(false), - stream_data_mode(qpdf_s_compress), - compress_streams(true), - compress_streams_set(false), - recompress_flate(false), - recompress_flate_set(false), - compression_level(-1), - decode_level(qpdf_dl_generalized), - decode_level_set(false), - normalize_set(false), - normalize(false), - suppress_recovery(false), - object_stream_set(false), - object_stream_mode(qpdf_o_preserve), - ignore_xref_streams(false), - qdf_mode(false), - preserve_unreferenced_objects(false), - remove_unreferenced_page_resources(re_auto), - keep_files_open(true), - keep_files_open_set(false), - keep_files_open_threshold(DEFAULT_KEEP_FILES_OPEN_THRESHOLD), - newline_before_endstream(false), - coalesce_contents(false), - flatten_annotations(false), - flatten_annotations_required(0), - flatten_annotations_forbidden(an_invisible | an_hidden), - generate_appearances(false), - show_npages(false), - deterministic_id(false), - static_id(false), - static_aes_iv(false), - suppress_original_object_id(false), - show_encryption(false), - show_encryption_key(false), - check_linearization(false), - show_linearization(false), - show_xref(false), - show_trailer(false), - show_obj(0), - show_gen(0), - show_raw_stream_data(false), - show_filtered_stream_data(false), - show_pages(false), - show_page_images(false), - collate(0), - flatten_rotation(false), - list_attachments(false), - json_version(0), - json_stream_data(qpdf_sj_none), - json_stream_data_set(false), - test_json_schema(false), - check(false), - optimize_images(false), - externalize_inline_images(false), - keep_inline_images(false), - remove_page_labels(false), - oi_min_width(DEFAULT_OI_MIN_WIDTH), - oi_min_height(DEFAULT_OI_MIN_HEIGHT), - oi_min_area(DEFAULT_OI_MIN_AREA), - ii_min_bytes(DEFAULT_II_MIN_BYTES), - underlay("underlay"), - overlay("overlay"), - under_overlay(nullptr), - require_outfile(true), - replace_input(false), - check_is_encrypted(false), - check_requires_password(false), - json_input(false), - json_output(false), - report_mem_usage(false) + log(QPDFLogger::defaultLogger()) { } -- cgit v1.2.3-54-g00ecf