diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index f540272..ac6b4b5 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 4495056..c7300ca 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 13144fe..37225a2 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 802948c..28f4264 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