aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdfjob-c.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-06-25 14:29:07 +0200
committerJay Berkenbilt <ejb@ql.org>2022-06-25 17:11:24 +0200
commit6c4537885e89f69b9368251759f75127e6dcc4d6 (patch)
treeee3ad1d6bf306e7121d8f31328613b1e5934c629 /libqpdf/qpdfjob-c.cc
parent7836e1974726f379b96d980cfa39561cfab2e0ff (diff)
downloadqpdf-6c4537885e89f69b9368251759f75127e6dcc4d6.tar.zst
Reformat code
Diffstat (limited to 'libqpdf/qpdfjob-c.cc')
-rw-r--r--libqpdf/qpdfjob-c.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/libqpdf/qpdfjob-c.cc b/libqpdf/qpdfjob-c.cc
index 4f7bd92c..9367547c 100644
--- a/libqpdf/qpdfjob-c.cc
+++ b/libqpdf/qpdfjob-c.cc
@@ -85,7 +85,8 @@ qpdfjob_run(qpdfjob_handle j)
});
}
-static int run_with_handle(std::function<int(qpdfjob_handle)> fn)
+static int
+run_with_handle(std::function<int(qpdfjob_handle)> fn)
{
auto j = qpdfjob_init();
int status = fn(j);
@@ -96,7 +97,8 @@ static int run_with_handle(std::function<int(qpdfjob_handle)> fn)
return status;
}
-int qpdfjob_run_from_argv(char const* const argv[])
+int
+qpdfjob_run_from_argv(char const* const argv[])
{
return run_with_handle([argv](qpdfjob_handle j) {
return qpdfjob_initialize_from_argv(j, argv);
@@ -113,7 +115,8 @@ qpdfjob_run_from_wide_argv(wchar_t const* const argv[])
}
#endif /* QPDF_NO_WCHAR_T */
-int qpdfjob_run_from_json(char const* json)
+int
+qpdfjob_run_from_json(char const* json)
{
return run_with_handle([json](qpdfjob_handle j) {
return qpdfjob_initialize_from_json(j, json);