dev-python/pytest: arm64 stable (bug #723996)
[gentoo.git] / app-office / calligra / files / calligra-3.1.0-poppler-0.69.patch
1 From 56bd4bab320b0c0a893751caee9a15a2241e3ef8 Mon Sep 17 00:00:00 2001
2 From: Antonio Rojas <arojas@archlinux.org>
3 Date: Wed, 24 Oct 2018 08:28:00 +0200
4 Subject: Fix build with poppler>=0.69
5
6 Remove no longer available Object::memCheck usage (which didn't do anything anyway since DEBUG_MEM was not set); add some const's
7
8 Differential Revision: https://phabricator.kde.org/D16388
9 ---
10  filters/karbon/pdf/PdfImport.cpp    | 3 ---
11  filters/karbon/pdf/SvgOutputDev.cpp | 8 ++++----
12  filters/karbon/pdf/SvgOutputDev.h   | 2 +-
13  3 files changed, 5 insertions(+), 8 deletions(-)
14
15 diff --git a/filters/karbon/pdf/PdfImport.cpp b/filters/karbon/pdf/PdfImport.cpp
16 index c3e96b0..48b08df 100644
17 --- a/filters/karbon/pdf/PdfImport.cpp
18 +++ b/filters/karbon/pdf/PdfImport.cpp
19 @@ -102,9 +102,6 @@ KoFilter::ConversionStatus PdfImport::convert(const QByteArray& from, const QByt
20      delete globalParams;
21      globalParams = 0;
22  
23 -    // check for memory leaks
24 -    Object::memCheck(stderr);
25 -
26      return KoFilter::OK;
27  }
28  
29 diff --git a/filters/karbon/pdf/SvgOutputDev.cpp b/filters/karbon/pdf/SvgOutputDev.cpp
30 index 931917a..7901317 100644
31 --- a/filters/karbon/pdf/SvgOutputDev.cpp
32 +++ b/filters/karbon/pdf/SvgOutputDev.cpp
33 @@ -212,7 +212,7 @@ QString SvgOutputDev::convertMatrix(const QMatrix &matrix)
34             .arg(matrix.dx()) .arg(matrix.dy());
35  }
36  
37 -QString SvgOutputDev::convertMatrix(double * matrix)
38 +QString SvgOutputDev::convertMatrix(const double * matrix)
39  {
40      return QString("matrix(%1 %2 %3 %4 %5 %6)")
41             .arg(matrix[0]).arg(matrix[1])
42 @@ -402,7 +402,7 @@ void SvgOutputDev::drawString(GfxState * state, GooString * s)
43  
44      QString str;
45  
46 -    char * p = s->getCString();
47 +    const char * p = s->getCString();
48      int len = s->getLength();
49      CharCode code;
50      Unicode *u = nullptr;
51 @@ -429,7 +429,7 @@ void SvgOutputDev::drawString(GfxState * state, GooString * s)
52      double x = state->getCurX();
53      double y = state->getCurY();
54  
55 -    double * ctm = state->getCTM();
56 +    const double * ctm = state->getCTM();
57      QMatrix transform(ctm[0], ctm[1], ctm[2], ctm[3], ctm[4], ctm[5]);
58  
59      QMatrix mirror;
60 @@ -522,7 +522,7 @@ void SvgOutputDev::drawImage(GfxState *state, Object */*ref*/, Stream *str,
61          return;
62      }
63  
64 -    double * ctm = state->getCTM();
65 +    const double * ctm = state->getCTM();
66      QMatrix m;
67      m.setMatrix(ctm[0] / width, ctm[1] / width, -ctm[2] / height, -ctm[3] / height, ctm[2] + ctm[4], ctm[3] + ctm[5]);
68  
69 diff --git a/filters/karbon/pdf/SvgOutputDev.h b/filters/karbon/pdf/SvgOutputDev.h
70 index 85fe55d..2a44908 100644
71 --- a/filters/karbon/pdf/SvgOutputDev.h
72 +++ b/filters/karbon/pdf/SvgOutputDev.h
73 @@ -84,7 +84,7 @@ public:
74  private:
75      QString convertPath(GfxPath *path);
76      QString convertMatrix(const QMatrix &matrix);
77 -    QString convertMatrix(double * matrix);
78 +    QString convertMatrix(const double * matrix);
79      QString printFill();
80      QString printStroke();
81  
82 -- 
83 cgit v1.1