diff --git a/gb.pdf/src/CPdfDocument.cpp b/gb.pdf/src/CPdfDocument.cpp index 4cd7eab3d..291a6f416 100644 --- a/gb.pdf/src/CPdfDocument.cpp +++ b/gb.pdf/src/CPdfDocument.cpp @@ -128,7 +128,7 @@ static void aux_return_string_info(void *_object, const char *key) { Object obj; Object dst; - const GooString *goo_value; + const_GooString *goo_value; Dict *info_dict; char *tmpstr; @@ -170,7 +170,7 @@ static void aux_return_date_info(void *_object, const char *key) GB_DATE ret; Object obj; Object dst; - const GooString *goo; + const_GooString *goo; Dict *info_dict; char *datestr=NULL,*tofree=NULL; int nnum; @@ -239,7 +239,7 @@ static uint32_t aux_get_page_from_action(void *_object, const_LinkAction *act) Ref pref; const_LinkDest *dest = get_dest(act); #if POPPLER_VERSION_0_6 - const GooString *name; + const_GooString *name; #else UGooString *name; #endif @@ -302,7 +302,7 @@ static char* aux_get_target_from_action(const_LinkAction *act) { char *vl=NULL; char *uni=NULL; - const GooString *tmp=NULL; + const_GooString *tmp=NULL; switch (act->getKind()) { diff --git a/gb.pdf/src/CPdfDocument.h b/gb.pdf/src/CPdfDocument.h index 677ea01c1..fa80d47a9 100644 --- a/gb.pdf/src/CPdfDocument.h +++ b/gb.pdf/src/CPdfDocument.h @@ -36,10 +36,12 @@ #define const_LinkAction const LinkAction #define const_LinkDest const LinkDest #define const_GooList const GooList +#define const_GooString const GooString #else #define const_LinkAction LinkAction #define const_LinkDest LinkDest #define const_GooList GooList +#define const_GooString GooString #endif #ifndef __CPDFDOCUMENT_C