diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-11-08 15:31:51 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-11-08 20:34:09 +0100 |
commit | 1a588c71a0b60d200077138eaff54fced14c4fe2 (patch) | |
tree | 5a54419c44bec4082c8254fbf55716403b9be187 /sc/source/ui/app/transobj.cxx | |
parent | 4d66721962f60a9c8b4653dc724f163c45e6ddd9 (diff) |
make a number of Calc functions return value by actually returning it
All these returned their value using a reference argument, for
apprently no good reason.
Change-Id: I6a33417e7df2aac67427c16e5003dfaaa1a814d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124872
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/source/ui/app/transobj.cxx')
-rw-r--r-- | sc/source/ui/app/transobj.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx index 0af2328f24c3..7783264d8801 100644 --- a/sc/source/ui/app/transobj.cxx +++ b/sc/source/ui/app/transobj.cxx @@ -318,9 +318,8 @@ bool ScTransferObj::GetData( const datatransfer::DataFlavor& rFlavor, const OUSt { SvNumberFormatter* pFormatter = m_pDoc->GetFormatTable(); sal_uInt32 nNumFmt = pPattern->GetNumberFormat(pFormatter); - OUString aText; const Color* pColor; - ScCellFormat::GetString(aCell, nNumFmt, aText, &pColor, *pFormatter, *m_pDoc); + OUString aText = ScCellFormat::GetString(aCell, nNumFmt, &pColor, *pFormatter, *m_pDoc); if (!aText.isEmpty()) aEngine.SetTextCurrentDefaults(aText); } |