Add const in CharCodeToUnicode
Function updated:
getLength
mapToUnicode
diff --git a/poppler/CharCodeToUnicode.cc b/poppler/CharCodeToUnicode.cc
index 7e99ce4..0695ccc 100644
--- a/poppler/CharCodeToUnicode.cc
+++ b/poppler/CharCodeToUnicode.cc
@@ -579,7 +579,7 @@
}
}
-int CharCodeToUnicode::mapToUnicode(CharCode c, Unicode **u) {
+int CharCodeToUnicode::mapToUnicode(CharCode c, Unicode **u) const {
int i;
if (isIdentity) {
diff --git a/poppler/CharCodeToUnicode.h b/poppler/CharCodeToUnicode.h
index 34b4571..c50aaf0 100644
--- a/poppler/CharCodeToUnicode.h
+++ b/poppler/CharCodeToUnicode.h
@@ -88,14 +88,14 @@
// Map a CharCode to Unicode. Returns a pointer in u to internal storage
// so never store the pointers it returns, just the data, otherwise
// your pointed values might get changed by future calls
- int mapToUnicode(CharCode c, Unicode **u);
+ int mapToUnicode(CharCode c, Unicode **u) const;
// Map a Unicode to CharCode.
int mapToCharCode(const Unicode* u, CharCode *c, int usize) const;
// Return the mapping's length, i.e., one more than the max char
// code supported by the mapping.
- CharCode getLength() { return mapLen; }
+ CharCode getLength() const { return mapLen; }
private: