vcl: add PDFGraphicResult instead of std::pair in ImportPDFUnloaded

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 20 June 2020 12:24 EDT

ImportPDFUnloaded returned graphics as a vector of std::pair with Graphic and Size. Instead, use a new struct PDFGraphicResult, so it can be extended in the future.

Change-Id: Idda00a3b98a8efcbd9b8c8d0ee3982becfdc1d7f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96755

03f0ea92bc38 vcl: add PDFGraphicResult instead of std::pair in ImportPDFUnloaded
include/vcl/pdfread.hxx | 18 ++++++++++++++++--
sd/source/filter/pdf/sdpdffilter.cxx | 8 ++++----
vcl/source/filter/ipdf/pdfread.cxx | 2 +-
3 files changed, 21 insertions(+), 7 deletions(-)

Upstream: cgit.freedesktop.org


  • Share