[Libreoffice-commits] .: sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Sun Nov 6 21:21:57 PST 2011
sc/source/core/data/document.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit bc5b8c53e3dbc8f8151c565eab31fea5bf09a6a6
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Nov 7 06:07:46 2011 +0100
MAC tinderbox does not like OUString::valueOf(sal_Int16)
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 275fca3..588b2ed 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -142,7 +142,7 @@ void ScDocument::MakeTable( SCTAB nTab,bool _bNeedsNameCheck )
if ( ValidTab(nTab) && ( nTab >= static_cast<SCTAB>(maTabs.size()) ||!maTabs[nTab]) )
{
rtl::OUString aString = ScGlobal::GetRscString(STR_TABLE_DEF); //"Table"
- aString += rtl::OUString::valueOf(static_cast<SCTAB>(nTab+1));
+ aString += rtl::OUString::valueOf(static_cast<sal_Int32>(nTab+1));
if ( _bNeedsNameCheck )
CreateValidTabName( aString ); // no doubles
if (nTab < static_cast<SCTAB>(maTabs.size()))
@@ -334,7 +334,7 @@ void ScDocument::CreateValidTabName(rtl::OUString& rName) const
for ( SCTAB i = static_cast<SCTAB>(maTabs.size())+1; !bOk ; i++ )
{
rName = aStrTable;
- rName += rtl::OUString::valueOf(i);
+ rName += rtl::OUString::valueOf(static_cast<SCTAB>(i));
if (bPrefix)
bOk = ValidNewTabName( rName );
else
More information about the Libreoffice-commits
mailing list