summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2019-04-02 23:03:01 +0200
committerAshod Nakashian <ashnakash@gmail.com>2019-08-25 13:42:52 +0200
commit5c5ab9c1291235671261db39503e239117a952dd (patch)
treebe4d05f4be8a90e2b39786ccd8a5a7e09612c6fc /include
parenteb581eff6ac41b938299b4c154ded6891bdd0c11 (diff)
pdfium: Returning a const std::shared_ptr<...>& is not recommended.
Change-Id: Iff6acef712c5b95c8cc222fc5293c9304b1c03ec (cherry picked from commit c0a3f61ef5c42d6cfa7484a2c759e7638da2c096) Reviewed-on: https://gerrit.libreoffice.org/77692 Tested-by: Jenkins Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdograf.hxx2
-rw-r--r--include/vcl/graph.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/svdograf.hxx b/include/svx/svdograf.hxx
index 02bcc83357fd..a61144ced8d3 100644
--- a/include/svx/svdograf.hxx
+++ b/include/svx/svdograf.hxx
@@ -202,7 +202,7 @@ public:
GDIMetaFile getMetafileFromEmbeddedVectorGraphicData() const;
bool isEmbeddedPdfData() const;
- std::shared_ptr<std::vector<sal_Int8>> const & getEmbeddedPdfData() const;
+ std::shared_ptr<std::vector<sal_Int8>> const getEmbeddedPdfData() const;
/// Returns the page number of the embedded data (typically to re-render or import it).
sal_Int32 getEmbeddedPageNumber() const;
diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx
index 91371a82beeb..b7cd1eb10438 100644
--- a/include/vcl/graph.hxx
+++ b/include/vcl/graph.hxx
@@ -224,7 +224,7 @@ public:
const VectorGraphicDataPtr& getVectorGraphicData() const;
void setPdfData(const std::shared_ptr<std::vector<sal_Int8>>& rPdfData);
- const std::shared_ptr<std::vector<sal_Int8>>& getPdfData() const;
+ std::shared_ptr<std::vector<sal_Int8>> getPdfData() const;
bool hasPdfData() const;
/// Set the page number of the multi-page source this Graphic is rendered from.