summaryrefslogtreecommitdiff
path: root/include/svtools/fmtfield.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 11:30:11 +0200
committerNoel Grandin <noel@peralex.com>2016-04-13 13:27:53 +0200
commit19b34c0039c6293f9b37aa70f8055aa2be28ba09 (patch)
tree04463a78141cd94ee70cd463ba7687993410c276 /include/svtools/fmtfield.hxx
parentfe8896bab01ccb595c993e54866a01f554b54f4f (diff)
loplugin:passstuffbyref in svtools
Change-Id: Ie166eaef65e56fafe4e57a5559b587d7558d7aa4
Diffstat (limited to 'include/svtools/fmtfield.hxx')
-rw-r--r--include/svtools/fmtfield.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svtools/fmtfield.hxx b/include/svtools/fmtfield.hxx
index ef04c004c44e..5cc8bd3f4230 100644
--- a/include/svtools/fmtfield.hxx
+++ b/include/svtools/fmtfield.hxx
@@ -184,7 +184,7 @@ public:
OUString GetTextValue() const;
void SetDefaultText(const OUString& rDefault) { m_sDefaultText = rDefault; }
- OUString GetDefaultText() const { return m_sDefaultText; }
+ const OUString& GetDefaultText() const { return m_sDefaultText; }
// The last colour from the Formatter's last output operation. Output operations get triggered by:
// SetValue, SetTextValue, SetTextFormatted, also indirectly via SetMin - / -MaxValue
@@ -285,7 +285,7 @@ class DoubleCurrencyField : public FormattedField
public:
DoubleCurrencyField(vcl::Window* pParent, WinBits nStyle = 0);
- OUString getCurrencySymbol() const { return m_sCurrencySymbol; }
+ const OUString& getCurrencySymbol() const { return m_sCurrencySymbol; }
void setCurrencySymbol(const OUString& rSymbol);
bool getPrependCurrSym() const { return m_bPrependCurrSym; }