From 1b1b471ca99abeb6d50d58d4297d68a87dd6f47a Mon Sep 17 00:00:00 2001 From: m-holger Date: Sat, 22 Jan 2022 09:14:53 -0500 Subject: [PATCH] Make a few whitespace fixes from last commit Commit by ejb@ql.org using m-holger as author so git annotate gives proper credit for changes. --- include/qpdf/QPDFObjectHandle.hh | 4 ++-- libqpdf/qpdf-c.cc | 2 +- qpdf/qpdf-ctest.c | 2 +- qpdf/test_driver.cc | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index f540272d..ac6b4b55 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -373,13 +373,13 @@ class QPDFObjectHandle // subtype, if any. QPDF_DLL bool isDictionaryOfType(std::string const& type, - std::string const& subtype = ""); + std::string const& subtype = ""); // True if the object is a stream of the specified type and // subtype, if any. QPDF_DLL bool isStreamOfType(std::string const& type, - std::string const& subtype = ""); + std::string const& subtype = ""); // Public factory methods diff --git a/libqpdf/qpdf-c.cc b/libqpdf/qpdf-c.cc index 44950568..c7300cae 100644 --- a/libqpdf/qpdf-c.cc +++ b/libqpdf/qpdf-c.cc @@ -1159,7 +1159,7 @@ QPDF_BOOL qpdf_oh_is_name_and_equals( } QPDF_BOOL qpdf_oh_is_dictionary_of_type( - qpdf_data qpdf, qpdf_oh oh, char const* type, char const* subtype) + qpdf_data qpdf, qpdf_oh oh, char const* type, char const* subtype) { auto stype = (subtype == nullptr) ? "" : subtype; return do_with_oh( diff --git a/qpdf/qpdf-ctest.c b/qpdf/qpdf-ctest.c index 13144fe3..37225a22 100644 --- a/qpdf/qpdf-ctest.c +++ b/qpdf/qpdf-ctest.c @@ -703,7 +703,7 @@ static void test25(char const* infile, assert(qpdf_oh_is_or_has_name( qpdf, qpdf_oh_get_array_item(qpdf, p_five, 0), "/Five")); assert(qpdf_oh_is_name_and_equals( - qpdf, qpdf_oh_get_array_item(qpdf, p_five, 0), "/Five")); + qpdf, qpdf_oh_get_array_item(qpdf, p_five, 0), "/Five")); assert(qpdf_oh_is_null(qpdf, p_null)); assert(qpdf_oh_get_type_code(qpdf, p_null) == ot_null); assert(strcmp(qpdf_oh_get_type_name(qpdf, p_null), "null") == 0); diff --git a/qpdf/test_driver.cc b/qpdf/test_driver.cc index 802948cc..28f42643 100644 --- a/qpdf/test_driver.cc +++ b/qpdf/test_driver.cc @@ -3129,7 +3129,6 @@ static void test_82(QPDF& pdf, char const* arg2) assert(! pdf.getObjectByID(2,0).isStreamOfType("/Pages")); } - void runtest(int n, char const* filename1, char const* arg2) { // Most tests here are crafted to work on specific files. Look at