summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-12-03 16:02:22 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-12-03 16:57:10 +0100
commit4163bccb07191da0e6e6fe2aaa78e01007261fe2 (patch)
tree8b4a068c0debc111a9239c8efbf988dc488a2332 /utils
parentf9b6c772bf53e195871c687f7314c7001db6647b (diff)
Add some more const
Diffstat (limited to 'utils')
-rw-r--r--utils/pdffonts.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/pdffonts.cc b/utils/pdffonts.cc
index e4e90959..598a4913 100644
--- a/utils/pdffonts.cc
+++ b/utils/pdffonts.cc
@@ -156,7 +156,7 @@ int main(int argc, char *argv[]) {
// print the font substitutions
printf("name object ID substitute font substitute font file\n");
printf("------------------------------------ --------- ------------------------------------ ------------------------------------\n");
- for (FontInfo* font : fonts) {
+ for (const FontInfo* font : fonts) {
if (font->getFile()) {
printf("%-36s",
font->getName() ? font->getName()->c_str() : "[none]");
@@ -176,7 +176,7 @@ int main(int argc, char *argv[]) {
// print the font info
printf("name type encoding emb sub uni object ID\n");
printf("------------------------------------ ----------------- ---------------- --- --- --- ---------\n");
- for (FontInfo* font : fonts) {
+ for (const FontInfo* font : fonts) {
printf("%-36s %-17s %-16s %-3s %-3s %-3s",
font->getName() ? font->getName()->c_str() : "[none]",
fontTypeNames[font->getType()],