aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-01-22 15:14:53 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-22 15:14:53 +0100
commit1b1b471ca99abeb6d50d58d4297d68a87dd6f47a (patch)
tree1aad7f4ff67d742e60f615e75ab7e05c1d8d0d9c
parent8593b9fdf74e68099a5fe2aa0b6d0b6320781a2d (diff)
downloadqpdf-1b1b471ca99abeb6d50d58d4297d68a87dd6f47a.tar.zst
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.
-rw-r--r--include/qpdf/QPDFObjectHandle.hh4
-rw-r--r--libqpdf/qpdf-c.cc2
-rw-r--r--qpdf/qpdf-ctest.c2
-rw-r--r--qpdf/test_driver.cc1
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<QPDF_BOOL>(
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