summaryrefslogtreecommitdiff
path: root/glib/poppler-attachment.cc
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2019-01-03 21:11:49 +0100
committerChristian Persch <chpe@src.gnome.org>2019-01-03 21:11:49 +0100
commite1e4457a235f6107c09d32994fc628efa9e7bd0e (patch)
tree7a8135d6f8bbb10c34721981f45e4083812185e2 /glib/poppler-attachment.cc
parent1e99a1eeb3a144facf45165df9f457796c045daa (diff)
all: Use the openFile fopen wrapper from gfile.h
Use the openFile wrapper instead of calling fopen directly in the libraries.
Diffstat (limited to 'glib/poppler-attachment.cc')
-rw-r--r--glib/poppler-attachment.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/glib/poppler-attachment.cc b/glib/poppler-attachment.cc
index dd7064bf..ff09edcf 100644
--- a/glib/poppler-attachment.cc
+++ b/glib/poppler-attachment.cc
@@ -18,7 +18,8 @@
#include "config.h"
#include <errno.h>
-#include <glib/gstdio.h>
+
+#include <goo/gfile.h>
#include "poppler.h"
#include "poppler-private.h"
@@ -173,7 +174,7 @@ poppler_attachment_save (PopplerAttachment *attachment,
g_return_val_if_fail (POPPLER_IS_ATTACHMENT (attachment), FALSE);
- f = g_fopen (filename, "wb");
+ f = openFile (filename, "wb");
if (f == nullptr)
{