diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-06-23 23:50:53 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-15 19:16:02 +0000 |
commit | 67db35da5d7a3b117a0e0035c17c2fb58e5f23e6 (patch) | |
tree | c977f011cc90afe5144ae683f40c799eca02e9f2 /sw/inc/fldbas.hxx | |
parent | 5bd6a5110bb812f82a81e73422a7b14851f84441 (diff) |
DoubleToString: do not modify a reference argument, just return the result
Change-Id: I490aa61f8d9b47a6ead234afd51e2f5324530cb4
Reviewed-on: https://gerrit.libreoffice.org/4923
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc/fldbas.hxx')
-rw-r--r-- | sw/inc/fldbas.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx index 53ab8266538a..057f9171c87b 100644 --- a/sw/inc/fldbas.hxx +++ b/sw/inc/fldbas.hxx @@ -385,8 +385,8 @@ public: inline void EnableFormat(sal_Bool bFormat = sal_True) { bUseFormat = bFormat; } String ExpandValue(const double& rVal, sal_uInt32 nFmt, sal_uInt16 nLng=0) const; - void DoubleToString(String &rValue, const double &rVal, LanguageType eLng) const; - void DoubleToString(String &rValue, const double &rVal, sal_uInt32 nFmt) const; + String DoubleToString(const double &rVal, LanguageType eLng) const; + String DoubleToString(const double &rVal, sal_uInt32 nFmt) const; }; class SW_DLLPUBLIC SwValueField : public SwField |