From 636951e5da595515657d919610e57ac440810f20 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Sat, 3 Jul 2010 16:47:26 +0200 Subject: [PATCH 09/15] [glib] Only define filename_g when used Prevents a warning when building for win32. --- glib/poppler-document.cc | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/glib/poppler-document.cc b/glib/poppler-document.cc index b265a34..163aef0 100644 --- a/glib/poppler-document.cc +++ b/glib/poppler-document.cc @@ -140,7 +140,6 @@ poppler_document_new_from_file (const char *uri, GError **error) { PDFDoc *newDoc; - GooString *filename_g; GooString *password_g; char *filename; @@ -183,7 +182,7 @@ poppler_document_new_from_file (const char *uri, newDoc = new PDFDoc(filenameW, length, password_g, password_g); delete filenameW; #else - filename_g = new GooString (filename); + GooString *filename_g = new GooString (filename); newDoc = new PDFDoc(filename_g, password_g, password_g); #endif g_free (filename); -- 1.6.4.2