summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2018-09-23 01:15:23 +0200
committerAlbert Astals Cid <aacid@kde.org>2018-09-23 01:15:23 +0200
commitbddcc771de9e7d0a7a077732f15a958a44794f94 (patch)
tree5547300236bfa40af8b21c32fad52909704c3d2f
parent367a0c6ec6b25b706b9cf181d69abd5f32ffbcea (diff)
FoFiTrueType: Some more const
-rw-r--r--fofi/FoFiTrueType.cc4
-rw-r--r--fofi/FoFiTrueType.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/fofi/FoFiTrueType.cc b/fofi/FoFiTrueType.cc
index 1fa860d5..0501615f 100644
--- a/fofi/FoFiTrueType.cc
+++ b/fofi/FoFiTrueType.cc
@@ -1258,7 +1258,7 @@ void FoFiTrueType::cvtSfnts(FoFiOutputFunc outputFunc,
}
}
-void FoFiTrueType::dumpString(Guchar *s, int length,
+void FoFiTrueType::dumpString(const Guchar *s, int length,
FoFiOutputFunc outputFunc,
void *outputStream) {
GooString *buf;
@@ -1287,7 +1287,7 @@ void FoFiTrueType::dumpString(Guchar *s, int length,
(*outputFunc)(outputStream, "00>\n", 4);
}
-Guint FoFiTrueType::computeTableChecksum(Guchar *data, int length) {
+Guint FoFiTrueType::computeTableChecksum(const Guchar *data, int length) {
Guint checksum, word;
int i;
diff --git a/fofi/FoFiTrueType.h b/fofi/FoFiTrueType.h
index 9ac364f9..02d611d2 100644
--- a/fofi/FoFiTrueType.h
+++ b/fofi/FoFiTrueType.h
@@ -181,10 +181,10 @@ private:
void *outputStream, GooString *name,
GBool needVerticalMetrics,
int *maxUsedGlyph);
- void dumpString(Guchar *s, int length,
+ void dumpString(const Guchar *s, int length,
FoFiOutputFunc outputFunc,
void *outputStream);
- Guint computeTableChecksum(Guchar *data, int length);
+ Guint computeTableChecksum(const Guchar *data, int length);
void parse();
void readPostTable();
int seekTable(const char *tag);