diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-09 19:32:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-09 22:38:50 +0100 |
commit | a58c0d4cefe4de132af32d910ec797a2efb3ee3a (patch) | |
tree | 184accf354eb592ebba452567a0e80d1c0351f1a /vcl/source | |
parent | cf3dda7c1c1da50db75d4c022bef279149d26636 (diff) |
cid#1556778 COPY_INSTEAD_OF_MOVE
and
cid#1546474 COPY_INSTEAD_OF_MOVE
cid#1546473 COPY_INSTEAD_OF_MOVE
cid#1546469 COPY_INSTEAD_OF_MOVE
cid#1546467 COPY_INSTEAD_OF_MOVE
cid#1546458 COPY_INSTEAD_OF_MOVE
cid#1546448 COPY_INSTEAD_OF_MOVE
cid#1546446 COPY_INSTEAD_OF_MOVE
cid#1546441 COPY_INSTEAD_OF_MOVE
cid#1546424 COPY_INSTEAD_OF_MOVE
cid#1546377 COPY_INSTEAD_OF_MOVE
cid#1546374 COPY_INSTEAD_OF_MOVE
cid#1546352 COPY_INSTEAD_OF_MOVE
cid#1546334 COPY_INSTEAD_OF_MOVE
cid#1546328 COPY_INSTEAD_OF_MOVE
cid#1546310 COPY_INSTEAD_OF_MOVE
cid#1546303 COPY_INSTEAD_OF_MOVE
Change-Id: I8a43fdd574857ba1d3ec416f23c8269a9a08e12f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160515
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/filter/ipdf/pdfread.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx index ac4bceaf45d3..b8a6687827cb 100644 --- a/vcl/source/filter/ipdf/pdfread.cxx +++ b/vcl/source/filter/ipdf/pdfread.cxx @@ -184,9 +184,6 @@ findAnnotations(const std::unique_ptr<vcl::pdf::PDFiumPage>& pPage, basegfx::B2D || eSubtype == vcl::pdf::PDFAnnotationSubType::Highlight || eSubtype == vcl::pdf::PDFAnnotationSubType::Line) { - OUString sAuthor = pAnnotation->getString(vcl::pdf::constDictionaryKeyTitle); - OUString sText = pAnnotation->getString(vcl::pdf::constDictionaryKeyContents); - basegfx::B2DRectangle rRectangle = pAnnotation->getRectangle(); basegfx::B2DRectangle rRectangleHMM( convertPointToMm100(rRectangle.getMinX()), @@ -210,8 +207,10 @@ findAnnotations(const std::unique_ptr<vcl::pdf::PDFiumPage>& pPage, basegfx::B2D auto& rPDFGraphicAnnotation = aPDFGraphicAnnotations.back(); rPDFGraphicAnnotation.maRectangle = rRectangleHMM; - rPDFGraphicAnnotation.maAuthor = sAuthor; - rPDFGraphicAnnotation.maText = sText; + rPDFGraphicAnnotation.maAuthor + = pAnnotation->getString(vcl::pdf::constDictionaryKeyTitle); + rPDFGraphicAnnotation.maText + = pAnnotation->getString(vcl::pdf::constDictionaryKeyContents); rPDFGraphicAnnotation.maDateTime = aDateTime; rPDFGraphicAnnotation.meSubType = eSubtype; rPDFGraphicAnnotation.maColor = aColor; |