summaryrefslogtreecommitdiff
path: root/debian/patches/0002-Resolve-const-ness-of-some-variables.patch
blob: 70ebed6d882441e3ddb6231093a79d76f58e2d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 6505a0e817495b85897c9380161034ae611ddd90 Mon Sep 17 00:00:00 2001
From: Andreas Politz <politza@hochschule-trier.de>
Date: Sat, 21 Apr 2018 18:05:15 +0200
Subject: [PATCH] Resolve const'ness of some variables

---
 server/poppler-hack.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/poppler-hack.cc b/server/poppler-hack.cc
index 0c62f73..a508136 100644
--- a/server/poppler-hack.cc
+++ b/server/poppler-hack.cc
@@ -51,7 +51,7 @@ GType poppler_annot_markup_get_type (void) G_GNUC_CONST;
     double y2;
   };
 
-  char *_xpoppler_goo_string_to_utf8(GooString *s)
+  char *_xpoppler_goo_string_to_utf8(const GooString *s)
   {
     char *result;
 
@@ -100,7 +100,7 @@ GType poppler_annot_markup_get_type (void) G_GNUC_CONST;
   gchar *xpoppler_annot_markup_get_created (PopplerAnnotMarkup *poppler_annot)
   {
     AnnotMarkup *annot;
-    GooString *text;
+    const GooString *text;
 
     g_return_val_if_fail (POPPLER_IS_ANNOT_MARKUP (poppler_annot), NULL);
 
-- 
2.19.1