diff options
author | Jean-Noël Rouvignac <jn.rouvignac@gmail.com> | 2013-01-20 13:55:09 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-01-21 15:04:17 +0000 |
commit | 63bcb139b941a2eff1b5ad367046bca067e7d1f8 (patch) | |
tree | e3ecd8d2804dc60be4233508af0e78fdae0c9838 /l10ntools | |
parent | curl: patched to read IE proxy settings on Windows (diff) | |
download | core-63bcb139b941a2eff1b5ad367046bca067e7d1f8.tar.gz core-63bcb139b941a2eff1b5ad367046bca067e7d1f8.zip |
Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()
Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de
Reviewed-on: https://gerrit.libreoffice.org/1784
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/export.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx index 831d893f00fb..bb6e1c50081e 100644 --- a/l10ntools/source/export.cxx +++ b/l10ntools/source/export.cxx @@ -1159,7 +1159,7 @@ void Export::InsertListEntry(const rtl::OString &rText, const rtl::OString &rLin if ( nListIndex + 1 > pList->size()) { ExportListEntry *pNew = new ExportListEntry(); - (*pNew)[LIST_REFID] = rtl::OString::valueOf(static_cast<sal_Int32>(REFID_NONE)); + (*pNew)[LIST_REFID] = OString::number(REFID_NONE); pList->push_back(pNew); } ExportListEntry *pCurEntry = (*pList)[ nListIndex ]; @@ -1464,7 +1464,7 @@ sal_Bool Export::PrepareTextToMerge(rtl::OString &rText, sal_uInt16 nTyp, { pResData->sId = GetPairedListID( sLastListLine ); } - else pResData->sId = rtl::OString::valueOf(static_cast<sal_Int32>(nListIndex)); + else pResData->sId = OString::number(nListIndex); if (!pResData->sGId.isEmpty()) pResData->sGId = pResData->sGId + rtl::OString('.'); @@ -1692,7 +1692,7 @@ void Export::MergeRest( ResData *pResData, sal_uInt16 nMode ) */ sal_Bool bTranslateList = true; if( !bPairedList ){ - pResData->sId = OString::valueOf(static_cast<sal_Int32>(nMaxIndex)); + pResData->sId = OString::number(nMaxIndex); pEntrys = pMergeDataFile->GetPFormEntrys( pResData ); if ( !pEntrys ) bTranslateList = false; @@ -1815,7 +1815,7 @@ void Export::MergeRest( ResData *pResData, sal_uInt16 nMode ) } } else - pResData->sId = rtl::OString::valueOf(static_cast<sal_Int32>(nIdx)); + pResData->sId = OString::number(nIdx); PFormEntrys *oldEntry = pEntrys; pEntrys = pMergeDataFile->GetPFormEntrys( pResData ); if( !pEntrys ) |