summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-20 13:00:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-20 15:24:34 +0200
commit9f958c076a86e80a48fcd7bbca65a834568e94ea (patch)
treecfa0b4f55a6b6717e5a359357fd20779e9d98b00 /sw/inc
parenta40558be785756929f606ab0798a026b985e0ffb (diff)
loplugin:passstuffbyref
Change-Id: I336fd329b577b6fa141265d8bc7ce67784bd7306 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133210 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/expfld.hxx2
-rw-r--r--sw/inc/fldbas.hxx2
-rw-r--r--sw/inc/formatcontentcontrol.hxx2
-rw-r--r--sw/inc/frmfmt.hxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/expfld.hxx b/sw/inc/expfld.hxx
index d241c9adb665..92ef8136dcde 100644
--- a/sw/inc/expfld.hxx
+++ b/sw/inc/expfld.hxx
@@ -319,7 +319,7 @@ public:
void applyFieldContent( const OUString& rNewFieldContent );
bool isFormField() const;
- css::uno::Sequence<css::beans::PropertyValue> getGrabBagParams() const { return maGrabBag; }
+ const css::uno::Sequence<css::beans::PropertyValue> & getGrabBagParams() const { return maGrabBag; }
virtual OUString GetFieldName() const override;
diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx
index 5a256cb1884d..21a2c1000c0c 100644
--- a/sw/inc/fldbas.hxx
+++ b/sw/inc/fldbas.hxx
@@ -391,7 +391,7 @@ public:
/// Is this field clickable?
bool IsClickable() const;
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
- OUString GetTitle() const { return m_aTitle; }
+ const OUString & GetTitle() const { return m_aTitle; }
void SetTitle(const OUString& rTitle) { m_aTitle = rTitle; }
};
diff --git a/sw/inc/formatcontentcontrol.hxx b/sw/inc/formatcontentcontrol.hxx
index ba29a6825523..bb92454ffd09 100644
--- a/sw/inc/formatcontentcontrol.hxx
+++ b/sw/inc/formatcontentcontrol.hxx
@@ -91,7 +91,7 @@ public:
void NotifyChangeTextNode(SwTextNode* pTextNode);
- css::uno::WeakReference<css::text::XTextContent> GetXContentControl() const
+ const css::uno::WeakReference<css::text::XTextContent>& GetXContentControl() const
{
return m_wXContentControl;
}
diff --git a/sw/inc/frmfmt.hxx b/sw/inc/frmfmt.hxx
index 4a5f2f1e8e87..bc0944fa39fe 100644
--- a/sw/inc/frmfmt.hxx
+++ b/sw/inc/frmfmt.hxx
@@ -223,7 +223,7 @@ public:
OUString GetObjTitle() const;
void SetObjTitle( const OUString& rTitle, bool bBroadcast = false );
- OUString GetObjTooltip() const;
+ const OUString & GetObjTooltip() const;
void SetObjTooltip(const OUString& rTooltip);
OUString GetObjDescription() const;