diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-11-24 19:01:58 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-11-27 22:59:29 -0600 |
commit | 739146b75d8f3e537759925ba6e17cddd28e1acf (patch) | |
tree | 48e9e2320c539de28ea8cd8fd03e5ea69bf55767 /sw | |
parent | 621cdc7a446e500a6c1b7fd417199be34cdaf3da (diff) |
convert the last SvNumberformat::GetOutputString and users to OUString
Change-Id: I9766872069ef5c2ee740dcbd8ac288aa8063a752
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/utlui/numfmtlb.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/utlui/numfmtlb.cxx b/sw/source/ui/utlui/numfmtlb.cxx index a04a8a05ed90..5ed6985086a7 100644 --- a/sw/source/ui/utlui/numfmtlb.cxx +++ b/sw/source/ui/utlui/numfmtlb.cxx @@ -220,7 +220,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType) sal_uLong nFormat; Color* pCol; double fVal = GetDefValue( nFormatType ); - String sValue; + OUString sValue; sal_uLong nSysNumFmt = pFormatter->GetFormatIndex( NF_NUMBER_SYSTEM, eCurLanguage ); @@ -239,13 +239,13 @@ void NumFormatListBox::SetFormatType(const short nFormatType) eCurLanguage ) || ((SvNumberformat*)pFmt)->GetOutputString( fVal, sValue, &pCol ) || nFormatType == NUMBERFORMAT_UNDEFINED ) - sValue = pFmt->GetFormatstring(); + { + sValue = pFmt->GetFormatstring(); + } else if( nFormatType == NUMBERFORMAT_TEXT ) { OUString sTxt("\"ABC\""); - OUString sTempOut(sValue); - pFormatter->GetOutputString( sTxt, nFormat, sTempOut, &pCol); - sValue = sTempOut; + pFormatter->GetOutputString( sTxt, nFormat, sValue, &pCol); } if (nFormat != nSysNumFmt && |