Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
main: use pdf::link::Destination copy constructor.
Browse files Browse the repository at this point in the history
Fixes:

  main.cc: In function ‘int get_page_for_goto_link(pdf::link::GoTo*, pdf::Catalog*)’:
  main.cc:92:27: error: ‘const Destination’ {aka ‘const class LinkDest’} has no member named ‘copy’

https://cgit.freedesktop.org/poppler/poppler/commit/?id=7a429c3cf9fba67e
  • Loading branch information
jwilk committed Feb 16, 2022
1 parent e170ad5 commit 81b635e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static int get_page_for_goto_link(pdf::link::GoTo *goto_link, pdf::Catalog *cata
#endif
}
else
dest.reset(orig_dest->copy());
dest.reset(new pdf::link::Destination(*orig_dest));
if (dest.get() != nullptr)
{
int page;
Expand Down

0 comments on commit 81b635e

Please sign in to comment.