aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pl_Base64.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2023-05-21 19:35:09 +0200
committerJay Berkenbilt <ejb@ql.org>2023-05-21 19:35:09 +0200
commit60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2 (patch)
treea707602da466c02ff1a54b3263c3a881cd7204a4 /libqpdf/Pl_Base64.cc
parent6b077332d38c093de2618d5e1481b42222106065 (diff)
downloadqpdf-60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2.tar.zst
Rerun clang-format
Diffstat (limited to 'libqpdf/Pl_Base64.cc')
-rw-r--r--libqpdf/Pl_Base64.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/libqpdf/Pl_Base64.cc b/libqpdf/Pl_Base64.cc
index af5ff0bb..e42c9cb6 100644
--- a/libqpdf/Pl_Base64.cc
+++ b/libqpdf/Pl_Base64.cc
@@ -91,8 +91,7 @@ void
Pl_Base64::flush_decode()
{
if (this->end_of_data) {
- throw std::runtime_error(
- getIdentifier() + ": base64 decode: data follows pad characters");
+ throw std::runtime_error(getIdentifier() + ": base64 decode: data follows pad characters");
}
int pad = 0;
int shift = 18;
@@ -110,14 +109,12 @@ Pl_Base64::flush_decode()
v = 62;
} else if ((ch == '/') || (ch == '_')) {
v = 63;
- } else if (
- (ch == '=') && ((i == 3) || ((i == 2) && (this->buf[3] == '=')))) {
+ } else if ((ch == '=') && ((i == 3) || ((i == 2) && (this->buf[3] == '=')))) {
++pad;
this->end_of_data = true;
v = 0;
} else {
- throw std::runtime_error(
- getIdentifier() + ": base64 decode: invalid input");
+ throw std::runtime_error(getIdentifier() + ": base64 decode: invalid input");
}
outval |= v << shift;
shift -= 6;