diff options
author | Jean-Noël Rouvignac <jn.rouvignac@gmail.com> | 2013-02-20 00:18:07 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-02-22 17:32:12 +0000 |
commit | 08603e66f9a994418d4e2a2badee3f5a6b3f7168 (patch) | |
tree | 1351699f802c447c2485aa32f427b035c70c2b07 /sw/source/filter/ww8/wrtw8num.cxx | |
parent | e904749eb8e1109f9a884b309fad6de5f78ad623 (diff) |
fdo#38838 search replace for String::CreateFromInt32().
I ran the following code replace:
s/(Uni|Xub)?String\s*::\s*CreateFromInt32/OUString::number/
Change-Id: Ic500593e3a0b593522c9469b18da0145285007da
Reviewed-on: https://gerrit.libreoffice.org/2280
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/source/filter/ww8/wrtw8num.cxx')
-rw-r--r-- | sw/source/filter/ww8/wrtw8num.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/wrtw8num.cxx b/sw/source/filter/ww8/wrtw8num.cxx index 68826bab030d..830c261b7408 100644 --- a/sw/source/filter/ww8/wrtw8num.cxx +++ b/sw/source/filter/ww8/wrtw8num.cxx @@ -46,7 +46,7 @@ sal_uInt16 MSWordExportBase::DuplicateNumRule( const SwNumRule *pRule, sal_uInt8 { sal_uInt16 nNumId = USHRT_MAX; String sPrefix(rtl::OUString("WW8TempExport")); - sPrefix += String::CreateFromInt32( nUniqueList++ ); + sPrefix += OUString::number( nUniqueList++ ); SwNumRule* pMyNumRule = new SwNumRule( pDoc->GetUniqueNumRuleName( &sPrefix ), SvxNumberFormat::LABEL_WIDTH_AND_POSITION ); @@ -399,7 +399,7 @@ void MSWordExportBase::AbstractNumberingDefinitions() // now search the nums in the string for( sal_uInt8 i = 0; i <= nLvl; ++i ) { - String sSrch( String::CreateFromInt32( i )); + String sSrch( OUString::number( i )); xub_StrLen nFnd = sNumStr.Search( sSrch ); if( STRING_NOTFOUND != nFnd ) { |