summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/svx/svdograf.hxx2
-rw-r--r--include/vcl/graph.hxx2
-rw-r--r--svx/source/svdraw/svdograf.cxx2
-rw-r--r--vcl/inc/impgraph.hxx2
-rw-r--r--vcl/source/gdi/graph.cxx2
-rw-r--r--vcl/source/gdi/impgraph.cxx2
6 files changed, 6 insertions, 6 deletions
diff --git a/include/svx/svdograf.hxx b/include/svx/svdograf.hxx
index a61144ced8d3..54858894baa3 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;
+ const std::shared_ptr<std::vector<sal_Int8>> & 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 3559f9935a81..a09e5efa2086 100644
--- a/include/vcl/graph.hxx
+++ b/include/vcl/graph.hxx
@@ -225,7 +225,7 @@ public:
const VectorGraphicDataPtr& getVectorGraphicData() const;
void setPdfData(const std::shared_ptr<std::vector<sal_Int8>>& rPdfData);
- std::shared_ptr<std::vector<sal_Int8>> getPdfData() const;
+ 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.
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index a51758add1f0..8c3c8adf7ccc 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -907,7 +907,7 @@ bool SdrGrafObj::isEmbeddedPdfData() const
return mpGraphicObject->GetGraphic().hasPdfData();
}
-std::shared_ptr<std::vector<sal_Int8>> const SdrGrafObj::getEmbeddedPdfData() const
+const std::shared_ptr<std::vector<sal_Int8>> & SdrGrafObj::getEmbeddedPdfData() const
{
return mpGraphicObject->GetGraphic().getPdfData();
}
diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx
index bd821eb05fb1..90e658c67308 100644
--- a/vcl/inc/impgraph.hxx
+++ b/vcl/inc/impgraph.hxx
@@ -228,7 +228,7 @@ private:
const VectorGraphicDataPtr& getVectorGraphicData() const;
- std::shared_ptr<std::vector<sal_Int8>> getPdfData() const;
+ const std::shared_ptr<std::vector<sal_Int8>> & getPdfData() const;
void setPdfData(const std::shared_ptr<std::vector<sal_Int8>>& rPdfData);
diff --git a/vcl/source/gdi/graph.cxx b/vcl/source/gdi/graph.cxx
index 01e069eeead3..45a562d26d77 100644
--- a/vcl/source/gdi/graph.cxx
+++ b/vcl/source/gdi/graph.cxx
@@ -558,7 +558,7 @@ void Graphic::setPdfData(const std::shared_ptr<std::vector<sal_Int8>>& rPdfData)
mxImpGraphic->setPdfData(rPdfData);
}
-std::shared_ptr<std::vector<sal_Int8>> Graphic::getPdfData() const
+const std::shared_ptr<std::vector<sal_Int8>> & Graphic::getPdfData() const
{
return mxImpGraphic->getPdfData();
}
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index d60da42ebbc7..b1ce5fc83d1f 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -477,7 +477,7 @@ void ImpGraphic::setPdfData(const std::shared_ptr<std::vector<sal_Int8>>& rPdfDa
mpPdfData = rPdfData;
}
-std::shared_ptr<std::vector<sal_Int8>> ImpGraphic::getPdfData() const
+const std::shared_ptr<std::vector<sal_Int8>> & ImpGraphic::getPdfData() const
{
ensureAvailable();