aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pl_ASCIIHexDecoder.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-05-20 14:34:53 +0200
committerm-holger <m-holger@kubitscheck.org>2023-05-20 16:41:44 +0200
commit2fa581537b068e5ddcaee68fd7b92e290fc5fc53 (patch)
treebcd19f51a33a389f9da1ca09b5b4b0c8e2d2cd5b /libqpdf/Pl_ASCIIHexDecoder.cc
parent41ec7eda54e2263eeb1aee4c3a0616c9c2777fb7 (diff)
downloadqpdf-2fa581537b068e5ddcaee68fd7b92e290fc5fc53.tar.zst
Use auto when initializing with a cast
Diffstat (limited to 'libqpdf/Pl_ASCIIHexDecoder.cc')
-rw-r--r--libqpdf/Pl_ASCIIHexDecoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/Pl_ASCIIHexDecoder.cc b/libqpdf/Pl_ASCIIHexDecoder.cc
index 5590efba..3548f33e 100644
--- a/libqpdf/Pl_ASCIIHexDecoder.cc
+++ b/libqpdf/Pl_ASCIIHexDecoder.cc
@@ -76,7 +76,7 @@ Pl_ASCIIHexDecoder::flush()
b[i] = this->inbuf[i] - '0';
}
}
- unsigned char ch = static_cast<unsigned char>((b[0] << 4) + b[1]);
+ auto ch = static_cast<unsigned char>((b[0] << 4) + b[1]);
QTC::TC(
"libtests",