diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-21 13:48:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-22 21:42:14 +0200 |
commit | 75997f13ee3a71d6c994392264b0190bd7bb6756 (patch) | |
tree | 4dc35a2e62e41d4b1f7953367419ff3fb072635f /sw/source/core/fields | |
parent | b546af03ab9e371c70ce72562bc0a492972a8585 (diff) |
no need to create temporaries when appending number to O[U]StringBuffer
Change-Id: I36d82423b5f75010552696a66cec7e53ee265ce4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114395
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/fields')
-rw-r--r-- | sw/source/core/fields/cellfml.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/fields/cellfml.cxx b/sw/source/core/fields/cellfml.cxx index cdff7c6fe588..17c5dbf1d070 100644 --- a/sw/source/core/fields/cellfml.cxx +++ b/sw/source/core/fields/cellfml.cxx @@ -463,7 +463,7 @@ void SwTableFormula::RelBoxNmsToPtr( const SwTable& rTable, OUStringBuffer& rNew { const SwTableBox *pRelLastBox = lcl_RelToBox( rTable, pBox, *pLastBox ); if ( pRelLastBox ) - rNewStr.append(OUString::number(reinterpret_cast<sal_PtrDiff>(pRelLastBox))); + rNewStr.append(reinterpret_cast<sal_PtrDiff>(pRelLastBox)); else rNewStr.append("0"); rNewStr.append(":"); @@ -472,7 +472,7 @@ void SwTableFormula::RelBoxNmsToPtr( const SwTable& rTable, OUStringBuffer& rNew const SwTableBox *pRelFirstBox = lcl_RelToBox( rTable, pBox, rFirstBox ); if ( pRelFirstBox ) - rNewStr.append(OUString::number(reinterpret_cast<sal_PtrDiff>(pRelFirstBox))); + rNewStr.append(reinterpret_cast<sal_PtrDiff>(pRelFirstBox)); else rNewStr.append("0"); @@ -557,13 +557,13 @@ void SwTableFormula::BoxNmsToPtr( const SwTable& rTable, OUStringBuffer& rNewStr if( pLastBox ) { pBox = rTable.GetTableBox( *pLastBox ); - rNewStr.append(OUString::number(reinterpret_cast<sal_PtrDiff>(pBox))) + rNewStr.append(reinterpret_cast<sal_PtrDiff>(pBox)) .append(":"); rFirstBox = rFirstBox.copy( pLastBox->getLength()+1 ); } pBox = rTable.GetTableBox( rFirstBox ); - rNewStr.append(OUString::number(reinterpret_cast<sal_PtrDiff>(pBox))) + rNewStr.append(reinterpret_cast<sal_PtrDiff>(pBox)) .append(rFirstBox[ rFirstBox.getLength()-1 ]); // get label for the box } @@ -1222,9 +1222,9 @@ void SwTableFormula::SplitMergeBoxNm_( const SwTable& rTable, OUStringBuffer& rN } if( pLastBox ) - rNewStr.append(OUString::number(reinterpret_cast<sal_PtrDiff>(pEndBox))).append(":"); + rNewStr.append(reinterpret_cast<sal_PtrDiff>(pEndBox)).append(":"); - rNewStr.append(OUString::number(reinterpret_cast<sal_PtrDiff>(pSttBox))) + rNewStr.append(reinterpret_cast<sal_PtrDiff>(pSttBox)) .append(rFirstBox[ rFirstBox.getLength()-1] ); } |