[poppler] poppler/DCTStream.cc poppler/DCTStream.h poppler/Decrypt.cc poppler/Decrypt.h poppler/FlateEncoder.h poppler/FlateStream.cc poppler/FlateStream.h poppler/JBIG2Stream.cc poppler/JBIG2Stream.h poppler/JPEG2000Stream.cc poppler/JPEG2000Stream.h poppler/JPXStream.cc poppler/JPXStream.h poppler/PSOutputDev.cc poppler/Stream.cc poppler/Stream.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri May 14 19:40:07 UTC 2021


 poppler/DCTStream.cc      |    4 +--
 poppler/DCTStream.h       |    4 +--
 poppler/Decrypt.cc        |    4 +--
 poppler/Decrypt.h         |    4 +--
 poppler/FlateEncoder.h    |    6 ++--
 poppler/FlateStream.cc    |    4 +--
 poppler/FlateStream.h     |    4 +--
 poppler/JBIG2Stream.cc    |    2 -
 poppler/JBIG2Stream.h     |    4 +--
 poppler/JPEG2000Stream.cc |    2 -
 poppler/JPEG2000Stream.h  |    4 +--
 poppler/JPXStream.cc      |    4 +--
 poppler/JPXStream.h       |    4 +--
 poppler/PSOutputDev.cc    |    4 +--
 poppler/Stream.cc         |   20 +++++++--------
 poppler/Stream.h          |   58 +++++++++++++++++++++++-----------------------
 16 files changed, 66 insertions(+), 66 deletions(-)

New commits:
commit 541e7778520bb99bd4c07ffcf62143ee3de406ff
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri May 14 21:32:44 2021 +0200

    Mark two Stream::isFoo functions as const

diff --git a/poppler/DCTStream.cc b/poppler/DCTStream.cc
index 8cfcb4a8..a61c99a7 100644
--- a/poppler/DCTStream.cc
+++ b/poppler/DCTStream.cc
@@ -5,7 +5,7 @@
 // This file is licensed under the GPLv2 or later
 //
 // Copyright 2005 Jeff Muizelaar <jeff at infidigm.net>
-// Copyright 2005-2010, 2012, 2017, 2020 Albert Astals Cid <aacid at kde.org>
+// Copyright 2005-2010, 2012, 2017, 2020, 2021 Albert Astals Cid <aacid at kde.org>
 // Copyright 2009 Ryszard Trojnacki <rysiek at menel.com>
 // Copyright 2010 Carlos Garcia Campos <carlosgc at gnome.org>
 // Copyright 2011 Daiki Ueno <ueno at unixuser.org>
@@ -249,7 +249,7 @@ GooString *DCTStream::getPSFilter(int psLevel, const char *indent)
     return s;
 }
 
-bool DCTStream::isBinary(bool last)
+bool DCTStream::isBinary(bool last) const
 {
     return str->isBinary(true);
 }
diff --git a/poppler/DCTStream.h b/poppler/DCTStream.h
index c86f5d5b..2aaee12c 100644
--- a/poppler/DCTStream.h
+++ b/poppler/DCTStream.h
@@ -6,7 +6,7 @@
 //
 // Copyright 2005 Jeff Muizelaar <jeff at infidigm.net>
 // Copyright 2005 Martin Kretzschmar <martink at gnome.org>
-// Copyright 2005-2007, 2009-2011, 2017, 2019 Albert Astals Cid <aacid at kde.org>
+// Copyright 2005-2007, 2009-2011, 2017, 2019, 2021 Albert Astals Cid <aacid at kde.org>
 // Copyright 2010 Carlos Garcia Campos <carlosgc at gnome.org>
 // Copyright 2011 Daiki Ueno <ueno at unixuser.org>
 // Copyright 2013 Thomas Freitag <Thomas.Freitag at alfa.de>
@@ -65,7 +65,7 @@ public:
     int getChar() override;
     int lookChar() override;
     GooString *getPSFilter(int psLevel, const char *indent) override;
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
 
 private:
     void init();
diff --git a/poppler/Decrypt.cc b/poppler/Decrypt.cc
index 62b11702..8534fbc7 100644
--- a/poppler/Decrypt.cc
+++ b/poppler/Decrypt.cc
@@ -14,7 +14,7 @@
 // under GPL version 2 or later
 //
 // Copyright (C) 2008 Julien Rebetez <julien at fhtagn.net>
-// Copyright (C) 2008, 2010, 2016-2020 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2008, 2010, 2016-2021 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2009 Matthias Franz <matthias at ktug.or.kr>
 // Copyright (C) 2009 David Benjamin <davidben at mit.edu>
 // Copyright (C) 2012 Fabio D'Urso <fabiodurso at hotmail.it>
@@ -370,7 +370,7 @@ int BaseCryptStream::getChar()
     return c;
 }
 
-bool BaseCryptStream::isBinary(bool last)
+bool BaseCryptStream::isBinary(bool last) const
 {
     return str->isBinary(last);
 }
diff --git a/poppler/Decrypt.h b/poppler/Decrypt.h
index bf957663..4f0c6d28 100644
--- a/poppler/Decrypt.h
+++ b/poppler/Decrypt.h
@@ -17,7 +17,7 @@
 // Copyright (C) 2009 David Benjamin <davidben at mit.edu>
 // Copyright (C) 2012 Fabio D'Urso <fabiodurso at hotmail.it>
 // Copyright (C) 2013 Adrian Johnson <ajohnson at redneon.com>
-// Copyright (C) 2013, 2018, 2019 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2013, 2018, 2019, 2021 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2013 Thomas Freitag <Thomas.Freitag at alfa.de>
 //
 // To see a description of the changes please see the Changelog file that
@@ -99,7 +99,7 @@ public:
     int getChar() override;
     int lookChar() override = 0;
     Goffset getPos() override;
-    bool isBinary(bool last) override;
+    bool isBinary(bool last) const override;
     Stream *getUndecodedStream() override { return this; }
     void setAutoDelete(bool val);
 
diff --git a/poppler/FlateEncoder.h b/poppler/FlateEncoder.h
index ac2f7a68..3f30558a 100644
--- a/poppler/FlateEncoder.h
+++ b/poppler/FlateEncoder.h
@@ -3,7 +3,7 @@
 // FlateEncoder.h
 //
 // Copyright (C) 2016, William Bader <williambader at hotmail.com>
-// Copyright (C) 2018, 2019 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2018, 2019, 2021 Albert Astals Cid <aacid at kde.org>
 //
 // This file is under the GPLv2 or later license
 //
@@ -47,8 +47,8 @@ public:
     int getChar() override { return (outBufPtr >= outBufEnd && !fillBuf()) ? EOF : (*outBufPtr++ & 0xff); }
     int lookChar() override { return (outBufPtr >= outBufEnd && !fillBuf()) ? EOF : (*outBufPtr & 0xff); }
     GooString *getPSFilter(int psLevel, const char *indent) override { return nullptr; }
-    bool isBinary(bool last = true) override { return true; }
-    bool isEncoder() override { return true; }
+    bool isBinary(bool last = true) const override { return true; }
+    bool isEncoder() const override { return true; }
 
 private:
     static const int inBufSize = 16384;
diff --git a/poppler/FlateStream.cc b/poppler/FlateStream.cc
index 5afe0e70..6d49882d 100644
--- a/poppler/FlateStream.cc
+++ b/poppler/FlateStream.cc
@@ -3,7 +3,7 @@
 // FlateStream.cc
 //
 // Copyright (C) 2005, Jeff Muizelaar <jeff at infidigm.net>
-// Copyright (C) 2010, Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2010, 2021, Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2016, William Bader <williambader at hotmail.com>
 // Copyright (C) 2017, Adrian Johnson <ajohnson at redneon.com>
 //
@@ -140,7 +140,7 @@ GooString *FlateStream::getPSFilter(int psLevel, const char *indent)
     return s;
 }
 
-bool FlateStream::isBinary(bool last)
+bool FlateStream::isBinary(bool last) const
 {
     return str->isBinary(true);
 }
diff --git a/poppler/FlateStream.h b/poppler/FlateStream.h
index 29ca7686..88f69bea 100644
--- a/poppler/FlateStream.h
+++ b/poppler/FlateStream.h
@@ -3,7 +3,7 @@
 // FlateStream.h
 //
 // Copyright (C) 2005, Jeff Muizelaar <jeff at infidigm.net>
-// Copyright (C) 2010, 2011, 2019, Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2010, 2011, 2019, 2021, Albert Astals Cid <aacid at kde.org>
 //
 // This file is under the GPLv2 or later license
 //
@@ -44,7 +44,7 @@ public:
     int getRawChar() override;
     void getRawChars(int nChars, int *buffer) override;
     GooString *getPSFilter(int psLevel, const char *indent) override;
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
 
 private:
     inline int doGetRawChar()
diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index 70996085..937f35ed 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -1237,7 +1237,7 @@ GooString *JBIG2Stream::getPSFilter(int psLevel, const char *indent)
     return nullptr;
 }
 
-bool JBIG2Stream::isBinary(bool last)
+bool JBIG2Stream::isBinary(bool last) const
 {
     return str->isBinary(true);
 }
diff --git a/poppler/JBIG2Stream.h b/poppler/JBIG2Stream.h
index f3da7586..af63a673 100644
--- a/poppler/JBIG2Stream.h
+++ b/poppler/JBIG2Stream.h
@@ -18,7 +18,7 @@
 // Copyright (C) 2015 Suzuki Toshiya <mpsuzuki at hiroshima-u.ac.jp>
 // Copyright (C) 2019-2021 Oliver Sander <oliver.sander at tu-dresden.de>
 // Copyright (C) 2019 Volker Krause <vkrause at kde.org>
-// Copyright (C) 2019 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2019, 2021 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2019, 2020 Even Rouault <even.rouault at spatialys.com>
 //
 // To see a description of the changes please see the Changelog file that
@@ -54,7 +54,7 @@ public:
     int getChar() override;
     int lookChar() override;
     GooString *getPSFilter(int psLevel, const char *indent) override;
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
     virtual Object *getGlobalsStream() { return &globalsStream; }
     virtual Ref getGlobalsStreamRef() { return globalsStreamRef; }
 
diff --git a/poppler/JPEG2000Stream.cc b/poppler/JPEG2000Stream.cc
index 6223e427..36da2fcd 100644
--- a/poppler/JPEG2000Stream.cc
+++ b/poppler/JPEG2000Stream.cc
@@ -150,7 +150,7 @@ GooString *JPXStream::getPSFilter(int psLevel, const char *indent)
     return nullptr;
 }
 
-bool JPXStream::isBinary(bool last)
+bool JPXStream::isBinary(bool last) const
 {
     return str->isBinary(true);
 }
diff --git a/poppler/JPEG2000Stream.h b/poppler/JPEG2000Stream.h
index 6fbdfab8..a9b83c92 100644
--- a/poppler/JPEG2000Stream.h
+++ b/poppler/JPEG2000Stream.h
@@ -4,7 +4,7 @@
 //
 // A JPX stream decoder using OpenJPEG
 //
-// Copyright 2008, 2010, 2019 Albert Astals Cid <aacid at kde.org>
+// Copyright 2008, 2010, 2019, 2021 Albert Astals Cid <aacid at kde.org>
 // Copyright 2011 Daniel Glöckner <daniel-gl at gmx.net>
 // Copyright 2013, 2014 Adrian Johnson <ajohnson at redneon.com>
 // Copyright 2015 Adam Reichold <adam.reichold at t-online.de>
@@ -38,7 +38,7 @@ public:
     int getChar() override;
     int lookChar() override;
     GooString *getPSFilter(int psLevel, const char *indent) override;
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
     void getImageParams(int *bitsPerComponent, StreamColorSpaceMode *csMode) override;
 
     int readStream(int nChars, unsigned char *buffer) { return str->doGetChars(nChars, buffer); }
diff --git a/poppler/JPXStream.cc b/poppler/JPXStream.cc
index b2d6820b..b22018e0 100644
--- a/poppler/JPXStream.cc
+++ b/poppler/JPXStream.cc
@@ -13,7 +13,7 @@
 // All changes made under the Poppler project to this file are licensed
 // under GPL version 2 or later
 //
-// Copyright (C) 2008, 2012 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2008, 2012, 2021 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2012 Thomas Freitag <Thomas.Freitag at alfa.de>
 // Copyright (C) 2012 Even Rouault <even.rouault at mines-paris.org>
 // Copyright (C) 2019 Robert Niemi <robert.den.klurige at gmail.com>
@@ -476,7 +476,7 @@ GooString *JPXStream::getPSFilter(int psLevel, const char *indent)
     return nullptr;
 }
 
-bool JPXStream::isBinary(bool last)
+bool JPXStream::isBinary(bool last) const
 {
     return str->isBinary(true);
 }
diff --git a/poppler/JPXStream.h b/poppler/JPXStream.h
index fba253e7..d177ac6a 100644
--- a/poppler/JPXStream.h
+++ b/poppler/JPXStream.h
@@ -13,7 +13,7 @@
 // All changes made under the Poppler project to this file are licensed
 // under GPL version 2 or later
 //
-// Copyright (C) 2019 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2019, 2021 Albert Astals Cid <aacid at kde.org>
 //
 // To see a description of the changes please see the Changelog file that
 // came with your tarball or type make ChangeLog if you are building from git
@@ -292,7 +292,7 @@ public:
     int getChar() override;
     int lookChar() override;
     GooString *getPSFilter(int psLevel, const char *indent) override;
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
     void getImageParams(int *bitsPerComponent, StreamColorSpaceMode *csMode) override;
 
 private:
diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index 2ab62748..3fb0c703 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -1004,8 +1004,8 @@ public:
     int getChar() override { return (bufIdx >= bufSize && !fillBuf()) ? EOF : buf[bufIdx++]; }
     int lookChar() override { return (bufIdx >= bufSize && !fillBuf()) ? EOF : buf[bufIdx]; }
     GooString *getPSFilter(int psLevel, const char *indent) override { return nullptr; }
-    bool isBinary(bool last = true) override { return true; }
-    bool isEncoder() override { return true; }
+    bool isBinary(bool last = true) const override { return true; }
+    bool isEncoder() const override { return true; }
 
 private:
     bool fillBuf();
diff --git a/poppler/Stream.cc b/poppler/Stream.cc
index a1c8b094..cf2d1ed4 100644
--- a/poppler/Stream.cc
+++ b/poppler/Stream.cc
@@ -235,7 +235,7 @@ public:
     void reset() override { str->getBaseStream()->reset(); }
     int getChar() override { return str->getBaseStream()->getChar(); }
     int lookChar() override { return str->getBaseStream()->lookChar(); }
-    bool isBinary(bool last = true) override { return str->getBaseStream()->isBinary(); }
+    bool isBinary(bool last = true) const override { return str->getBaseStream()->isBinary(); }
     int getUnfilteredChar() override { return str->getBaseStream()->getUnfilteredChar(); }
     void unfilteredReset() override { str->getBaseStream()->unfilteredReset(); }
     Goffset getPos() override { return str->getBaseStream()->getPos(); }
@@ -1361,7 +1361,7 @@ GooString *ASCIIHexStream::getPSFilter(int psLevel, const char *indent)
     return s;
 }
 
-bool ASCIIHexStream::isBinary(bool last)
+bool ASCIIHexStream::isBinary(bool last) const
 {
     return str->isBinary(false);
 }
@@ -1447,7 +1447,7 @@ GooString *ASCII85Stream::getPSFilter(int psLevel, const char *indent)
     return s;
 }
 
-bool ASCII85Stream::isBinary(bool last)
+bool ASCII85Stream::isBinary(bool last) const
 {
     return str->isBinary(false);
 }
@@ -1671,7 +1671,7 @@ GooString *LZWStream::getPSFilter(int psLevel, const char *indent)
     return s;
 }
 
-bool LZWStream::isBinary(bool last)
+bool LZWStream::isBinary(bool last) const
 {
     return str->isBinary(true);
 }
@@ -1734,7 +1734,7 @@ GooString *RunLengthStream::getPSFilter(int psLevel, const char *indent)
     return s;
 }
 
-bool RunLengthStream::isBinary(bool last)
+bool RunLengthStream::isBinary(bool last) const
 {
     return str->isBinary(true);
 }
@@ -2558,7 +2558,7 @@ GooString *CCITTFaxStream::getPSFilter(int psLevel, const char *indent)
     return s;
 }
 
-bool CCITTFaxStream::isBinary(bool last)
+bool CCITTFaxStream::isBinary(bool last) const
 {
     return str->isBinary(true);
 }
@@ -4026,7 +4026,7 @@ GooString *DCTStream::getPSFilter(int psLevel, const char *indent)
     return s;
 }
 
-bool DCTStream::isBinary(bool last)
+bool DCTStream::isBinary(bool last) const
 {
     return str->isBinary(true);
 }
@@ -4239,7 +4239,7 @@ GooString *FlateStream::getPSFilter(int psLevel, const char *indent)
     return s;
 }
 
-bool FlateStream::isBinary(bool last)
+bool FlateStream::isBinary(bool last) const
 {
     return str->isBinary(true);
 }
@@ -4633,7 +4633,7 @@ int BufStream::lookChar(int idx)
     return buf[idx];
 }
 
-bool BufStream::isBinary(bool last)
+bool BufStream::isBinary(bool last) const
 {
     return str->isBinary(true);
 }
@@ -4675,7 +4675,7 @@ int FixedLengthEncoder::lookChar()
     return str->getChar();
 }
 
-bool FixedLengthEncoder::isBinary(bool last)
+bool FixedLengthEncoder::isBinary(bool last) const
 {
     return str->isBinary(true);
 }
diff --git a/poppler/Stream.h b/poppler/Stream.h
index f4d4b586..97b91dc3 100644
--- a/poppler/Stream.h
+++ b/poppler/Stream.h
@@ -15,7 +15,7 @@
 //
 // Copyright (C) 2005 Jeff Muizelaar <jeff at infidigm.net>
 // Copyright (C) 2008 Julien Rebetez <julien at fhtagn.net>
-// Copyright (C) 2008, 2010, 2011, 2016-2020 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2008, 2010, 2011, 2016-2021 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2009 Carlos Garcia Campos <carlosgc at gnome.org>
 // Copyright (C) 2009 Stefan Thomas <thomas at eload24.com>
 // Copyright (C) 2010 Hib Eris <hib at hiberis.nl>
@@ -218,7 +218,7 @@ public:
     virtual GooString *getPSFilter(int psLevel, const char *indent);
 
     // Does this stream type potentially contain non-printable chars?
-    virtual bool isBinary(bool last = true) = 0;
+    virtual bool isBinary(bool last = true) const = 0;
 
     // Get the BaseStream of this stream.
     virtual BaseStream *getBaseStream() = 0;
@@ -232,7 +232,7 @@ public:
     virtual Object *getDictObject() = 0;
 
     // Is this an encoding filter?
-    virtual bool isEncoder() { return false; }
+    virtual bool isEncoder() const { return false; }
 
     // Get image parameters which are defined by the stream contents.
     virtual void getImageParams(int * /*bitsPerComponent*/, StreamColorSpaceMode * /*csMode*/) { }
@@ -329,7 +329,7 @@ public:
     virtual BaseStream *copy() = 0;
     virtual Stream *makeSubStream(Goffset start, bool limited, Goffset length, Object &&dict) = 0;
     void setPos(Goffset pos, int dir = 0) override = 0;
-    bool isBinary(bool last = true) override { return last; }
+    bool isBinary(bool last = true) const override { return last; }
     BaseStream *getBaseStream() override { return this; }
     Stream *getUndecodedStream() override { return this; }
     Dict *getDict() override { return dict.getDict(); }
@@ -806,7 +806,7 @@ public:
     }
     int lookChar() override;
     GooString *getPSFilter(int psLevel, const char *indent) override;
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
 
 private:
     int buf;
@@ -832,7 +832,7 @@ public:
     }
     int lookChar() override;
     GooString *getPSFilter(int psLevel, const char *indent) override;
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
 
 private:
     int c[5];
@@ -857,7 +857,7 @@ public:
     int getRawChar() override;
     void getRawChars(int nChars, int *buffer) override;
     GooString *getPSFilter(int psLevel, const char *indent) override;
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
 
 private:
     bool hasGetChars() override { return true; }
@@ -915,7 +915,7 @@ public:
     int getChar() override { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr++ & 0xff); }
     int lookChar() override { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr & 0xff); }
     GooString *getPSFilter(int psLevel, const char *indent) override;
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
 
 private:
     bool hasGetChars() override { return true; }
@@ -950,7 +950,7 @@ public:
     }
     int lookChar() override;
     GooString *getPSFilter(int psLevel, const char *indent) override;
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
 
     void unfilteredReset() override;
 
@@ -1042,7 +1042,7 @@ public:
     int getChar() override;
     int lookChar() override;
     GooString *getPSFilter(int psLevel, const char *indent) override;
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
 
     void unfilteredReset() override;
 
@@ -1147,7 +1147,7 @@ public:
     int getRawChar() override;
     void getRawChars(int nChars, int *buffer) override;
     GooString *getPSFilter(int psLevel, const char *indent) override;
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
     void unfilteredReset() override;
 
 private:
@@ -1220,7 +1220,7 @@ public:
     int getChar() override { return EOF; }
     int lookChar() override { return EOF; }
     GooString *getPSFilter(int /*psLevel*/, const char * /*indent*/) override { return nullptr; }
-    bool isBinary(bool /*last = true*/) override { return false; }
+    bool isBinary(bool /*last = true*/) const override { return false; }
 };
 
 //------------------------------------------------------------------------
@@ -1237,7 +1237,7 @@ public:
     int getChar() override;
     int lookChar() override;
     GooString *getPSFilter(int psLevel, const char *indent) override { return nullptr; }
-    bool isBinary(bool last = true) override;
+    bool isBinary(bool last = true) const override;
 
     int lookChar(int idx);
 
@@ -1260,8 +1260,8 @@ public:
     int getChar() override;
     int lookChar() override;
     GooString *getPSFilter(int /*psLevel*/, const char * /*indent*/) override { return nullptr; }
-    bool isBinary(bool /*last = true*/) override;
-    bool isEncoder() override { return true; }
+    bool isBinary(bool /*last = true*/) const override;
+    bool isEncoder() const override { return true; }
 
 private:
     int length;
@@ -1282,8 +1282,8 @@ public:
     int getChar() override { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr++ & 0xff); }
     int lookChar() override { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr & 0xff); }
     GooString *getPSFilter(int /*psLevel*/, const char * /*indent*/) override { return nullptr; }
-    bool isBinary(bool /*last = true*/) override { return false; }
-    bool isEncoder() override { return true; }
+    bool isBinary(bool /*last = true*/) const override { return false; }
+    bool isEncoder() const override { return true; }
 
 private:
     char buf[4];
@@ -1309,8 +1309,8 @@ public:
     int getChar() override { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr++ & 0xff); }
     int lookChar() override { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr & 0xff); }
     GooString *getPSFilter(int /*psLevel*/, const char * /*indent*/) override { return nullptr; }
-    bool isBinary(bool /*last = true*/) override { return false; }
-    bool isEncoder() override { return true; }
+    bool isBinary(bool /*last = true*/) const override { return false; }
+    bool isEncoder() const override { return true; }
 
 private:
     char buf[8];
@@ -1336,8 +1336,8 @@ public:
     int getChar() override { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr++ & 0xff); }
     int lookChar() override { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr & 0xff); }
     GooString *getPSFilter(int /*psLevel*/, const char * /*indent*/) override { return nullptr; }
-    bool isBinary(bool /*last = true*/) override { return true; }
-    bool isEncoder() override { return true; }
+    bool isBinary(bool /*last = true*/) const override { return true; }
+    bool isEncoder() const override { return true; }
 
 private:
     char buf[131];
@@ -1370,8 +1370,8 @@ public:
     int getChar() override;
     int lookChar() override;
     GooString *getPSFilter(int psLevel, const char *indent) override { return nullptr; }
-    bool isBinary(bool last = true) override { return true; }
-    bool isEncoder() override { return true; }
+    bool isBinary(bool last = true) const override { return true; }
+    bool isEncoder() const override { return true; }
 
 private:
     LZWEncoderNode table[4096];
@@ -1400,8 +1400,8 @@ public:
     int getChar() override { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr++ & 0xff); }
     int lookChar() override { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr & 0xff); }
     GooString *getPSFilter(int /*psLevel*/, const char * /*indent*/) override { return nullptr; }
-    bool isBinary(bool /*last = true*/) override { return false; }
-    bool isEncoder() override { return true; }
+    bool isBinary(bool /*last = true*/) const override { return false; }
+    bool isEncoder() const override { return true; }
 
 private:
     char buf[2];
@@ -1426,8 +1426,8 @@ public:
     int getChar() override { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr++ & 0xff); }
     int lookChar() override { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr & 0xff); }
     GooString *getPSFilter(int /*psLevel*/, const char * /*indent*/) override { return nullptr; }
-    bool isBinary(bool /*last = true*/) override { return false; }
-    bool isEncoder() override { return true; }
+    bool isBinary(bool /*last = true*/) const override { return false; }
+    bool isEncoder() const override { return true; }
 
 private:
     char buf[2];
@@ -1456,11 +1456,11 @@ public:
     int getChar() override;
     int lookChar() override;
     GooString *getPSFilter(int /*psLevel*/, const char * /*indent*/) override { return nullptr; }
-    bool isBinary(bool /*last = true*/) override { return true; }
+    bool isBinary(bool /*last = true*/) const override { return true; }
 
     // Although we are an encoder, we return false here, since we do not want do be auto-deleted by
     // successive streams.
-    bool isEncoder() override { return false; }
+    bool isEncoder() const override { return false; }
 
     int getUnfilteredChar() override { return getChar(); }
     void unfilteredReset() override { reset(); }


More information about the poppler mailing list