aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pl_LZWDecoder.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_LZWDecoder.cc
parent41ec7eda54e2263eeb1aee4c3a0616c9c2777fb7 (diff)
downloadqpdf-2fa581537b068e5ddcaee68fd7b92e290fc5fc53.tar.zst
Use auto when initializing with a cast
Diffstat (limited to 'libqpdf/Pl_LZWDecoder.cc')
-rw-r--r--libqpdf/Pl_LZWDecoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/Pl_LZWDecoder.cc b/libqpdf/Pl_LZWDecoder.cc
index 1c2d6807..3356ea4f 100644
--- a/libqpdf/Pl_LZWDecoder.cc
+++ b/libqpdf/Pl_LZWDecoder.cc
@@ -189,7 +189,7 @@ Pl_LZWDecoder::handleCode(unsigned int code)
}
if (code < 256) {
- unsigned char ch = static_cast<unsigned char>(code);
+ auto ch = static_cast<unsigned char>(code);
getNext()->write(&ch, 1);
} else {
unsigned int idx = code - 258;