$OpenBSD: patch-filters_karbon_pdf_SvgOutputDev_h,v 1.3 2020/01/02 20:30:04 kili Exp $

Fix build with poppler 0.73
https://cgit.kde.org/calligra.git/commit/?id=a615718
https://cgit.kde.org/calligra.git/commit/?id=ab9cb33

And with poppler-0.83

Index: filters/karbon/pdf/SvgOutputDev.h
--- filters/karbon/pdf/SvgOutputDev.h.orig
+++ filters/karbon/pdf/SvgOutputDev.h
@@ -44,11 +44,11 @@ class SvgOutputDev : public OutputDev (public)
     explicit SvgOutputDev(const QString &fileName);
     virtual ~SvgOutputDev();
 
-    GBool isOk();
+    bool isOk();
 
-    virtual GBool upsideDown();
-    virtual GBool useDrawChar();
-    virtual GBool interpretType3Chars();
+    virtual bool upsideDown();
+    virtual bool useDrawChar();
+    virtual bool interpretType3Chars();
     virtual void startPage(int pageNum, GfxState *state, XRef *xref);
     virtual void endPage();
 
@@ -58,15 +58,15 @@ class SvgOutputDev : public OutputDev (public)
     virtual void eoFill(GfxState *state);
 
     // text
-    virtual void drawString(GfxState * state, GooString * s);
+    virtual void drawString(GfxState * state, const GooString * s);
 
     // images
     virtual void drawImage(GfxState *state, Object *ref, Stream *str,
                            int width, int height, GfxImageColorMap *colorMap,
-                           int *maskColors, GBool inlineImg);
+                           const int *maskColors, bool inlineImg);
     virtual void drawImage(GfxState *state, Object *ref, Stream *str,
                            int width, int height, GfxImageColorMap *colorMap,
-                           GBool interpolate, int *maskColors, GBool inlineImg);
+                           bool interpolate, const int *maskColors, bool inlineImg);
 
     // styles
     virtual void updateAll(GfxState *state);
@@ -82,9 +82,9 @@ class SvgOutputDev : public OutputDev (public)
     /// Dumps content to svg file
     void dumpContent();
 private:
-    QString convertPath(GfxPath *path);
+    QString convertPath(const GfxPath *path);
     QString convertMatrix(const QMatrix &matrix);
-    QString convertMatrix(double * matrix);
+    QString convertMatrix(const double * matrix);
     QString printFill();
     QString printStroke();
 
