diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-24 14:39:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-24 16:12:35 +0200 |
commit | 32e22584872f1888c49c976f91f41d5edabcb45c (patch) | |
tree | 49af266896a3ac7734172290a64a6890be44a29c /cui | |
parent | 0bb521f4f9a5af955c704339ffbe02475c8e48cc (diff) |
loplugin:returnconstval in connectivity..cui
Change-Id: Ie6444713088c14d1821640f6eb219cee3d6ee542
Reviewed-on: https://gerrit.libreoffice.org/78056
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/SignSignatureLineDialog.cxx | 6 | ||||
-rw-r--r-- | cui/source/inc/SignSignatureLineDialog.hxx | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/cui/source/dialogs/SignSignatureLineDialog.cxx b/cui/source/dialogs/SignSignatureLineDialog.cxx index 03549d14fefc..00ad09f4cbef 100644 --- a/cui/source/dialogs/SignSignatureLineDialog.cxx +++ b/cui/source/dialogs/SignSignatureLineDialog.cxx @@ -214,8 +214,7 @@ void SignSignatureLineDialog::Apply() xValidGraphic, xInvalidGraphic, m_xEditComment->get_text()); } -const css::uno::Reference<css::graphic::XGraphic> -SignSignatureLineDialog::getSignedGraphic(bool bValid) +css::uno::Reference<css::graphic::XGraphic> SignSignatureLineDialog::getSignedGraphic(bool bValid) { // Read svg and replace placeholder texts OUString aSvgImage(getSignatureImage()); @@ -274,8 +273,7 @@ SignSignatureLineDialog::getSignedGraphic(bool bValid) Sequence<PropertyValue> aMediaProperties(1); aMediaProperties[0].Name = "InputStream"; aMediaProperties[0].Value <<= xInputStream; - Reference<XGraphic> xGraphic = xProvider->queryGraphic(aMediaProperties); - return xGraphic; + return xProvider->queryGraphic(aMediaProperties); } /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/cui/source/inc/SignSignatureLineDialog.hxx b/cui/source/inc/SignSignatureLineDialog.hxx index a12343c4ecd8..6bd08ff4baef 100644 --- a/cui/source/inc/SignSignatureLineDialog.hxx +++ b/cui/source/inc/SignSignatureLineDialog.hxx @@ -42,7 +42,7 @@ private: OUString m_sOriginalImageBtnLabel; void ValidateFields(); - const css::uno::Reference<css::graphic::XGraphic> getSignedGraphic(bool bValid); + css::uno::Reference<css::graphic::XGraphic> getSignedGraphic(bool bValid); virtual void Apply() override; DECL_LINK(clearImage, weld::Button&, void); |