summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-03 16:31:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-03 20:51:56 +0100
commitf175e06755db64ecfb706d5d86ef17c4197c0571 (patch)
tree86ecd2e5da2c7a00234b51965bf772ed1e8743fb /writerfilter/source/dmapper
parent91a360472f50cf58edeaf7a05a9a511dc9a5718b (diff)
Pass key by const& to the various addEmbeddedFont functions
Change-Id: Id6e36a4acf34a6b8d5b7202231650066ae6cb6cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107170 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'writerfilter/source/dmapper')
-rw-r--r--writerfilter/source/dmapper/FontTable.cxx2
-rw-r--r--writerfilter/source/dmapper/FontTable.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/FontTable.cxx b/writerfilter/source/dmapper/FontTable.cxx
index 2dd7b3d91221..7973a42938ec 100644
--- a/writerfilter/source/dmapper/FontTable.cxx
+++ b/writerfilter/source/dmapper/FontTable.cxx
@@ -226,7 +226,7 @@ sal_uInt32 FontTable::size()
bool FontTable::addEmbeddedFont(const css::uno::Reference<css::io::XInputStream>& stream,
const OUString& fontName, const char* extra,
- std::vector<unsigned char> key)
+ std::vector<unsigned char> const & key)
{
if (!m_pImpl->xEmbeddedFontHelper)
m_pImpl->xEmbeddedFontHelper.reset(new EmbeddedFontsHelper);
diff --git a/writerfilter/source/dmapper/FontTable.hxx b/writerfilter/source/dmapper/FontTable.hxx
index 1569ebf56e48..1276eaa8d705 100644
--- a/writerfilter/source/dmapper/FontTable.hxx
+++ b/writerfilter/source/dmapper/FontTable.hxx
@@ -54,7 +54,7 @@ class FontTable : public LoggedProperties, public LoggedTable
bool addEmbeddedFont(const css::uno::Reference<css::io::XInputStream>& stream,
const OUString& fontName, const char* extra,
- std::vector<unsigned char> key);
+ std::vector<unsigned char> const & key);
private:
// Properties