poppler/CharCodeToUnicode.cc | 2 +- poppler/CharCodeToUnicode.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit 3d6e70f763285f4e72188309164099e2dc06559c Author: corentin <[email protected]> Date: Fri Oct 18 16:29:55 2019 +0200 Add const in CharCodeToUnicode Function updated: getLength mapToUnicode diff --git a/poppler/CharCodeToUnicode.cc b/poppler/CharCodeToUnicode.cc index 7e99ce43..0695ccce 100644 --- a/poppler/CharCodeToUnicode.cc +++ b/poppler/CharCodeToUnicode.cc @@ -579,7 +579,7 @@ void CharCodeToUnicode::setMapping(CharCode c, Unicode *u, int len) { } } -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 34b45713..c50aaf06 100644 --- a/poppler/CharCodeToUnicode.h +++ b/poppler/CharCodeToUnicode.h @@ -88,14 +88,14 @@ public: // 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: _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
