summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-09-30 12:54:45 +0200
committerNoel Grandin <noel@peralex.com>2013-10-04 08:49:01 +0200
commitb0be20551ce024096615f20ea75f1dd92aa73c25 (patch)
treeccb8225be04ed0dea2066de84adeb853473a2bce /sc/source/filter/excel
parent127a09b3a86874ea076b36d867ba29eb61a2abc3 (diff)
convert sc/source/filter/inc/tokstack.hxx from String to OUString
Change-Id: Ib23a94ee45539c01c3e4c95b3d5983c470950a8b
Diffstat (limited to 'sc/source/filter/excel')
-rw-r--r--sc/source/filter/excel/excform.cxx2
-rw-r--r--sc/source/filter/excel/tokstack.cxx24
2 files changed, 13 insertions, 13 deletions
diff --git a/sc/source/filter/excel/excform.cxx b/sc/source/filter/excel/excform.cxx
index 238a88176f58..ae00ca9f7b30 100644
--- a/sc/source/filter/excel/excform.cxx
+++ b/sc/source/filter/excel/excform.cxx
@@ -1558,7 +1558,7 @@ void ExcelToSc::DoMulArgs( DefTokenId eId, sal_uInt8 nAnz )
{
TokenId n = eParam[ nAnz - 1 ];
//##### GRUETZE FUER BASIC-FUNCS RICHTEN!
- if( const String* pExt = aPool.GetExternal( n ) )
+ if( const OUString* pExt = aPool.GetExternal( n ) )
{
if( const XclFunctionInfo* pFuncInfo = maFuncProv.GetFuncInfoFromXclMacroName( *pExt ) )
aPool << pFuncInfo->meOpCode;
diff --git a/sc/source/filter/excel/tokstack.cxx b/sc/source/filter/excel/tokstack.cxx
index 49cadd9af4d1..22c26d7c1257 100644
--- a/sc/source/filter/excel/tokstack.cxx
+++ b/sc/source/filter/excel/tokstack.cxx
@@ -70,7 +70,7 @@ TokenPool::TokenPool( void )
// Sammelstelle fuer Strings
nP_Str = 4;
- ppP_Str = new String *[ nP_Str ];
+ ppP_Str = new OUString *[ nP_Str ];
for( nLauf = 0 ; nLauf < nP_Str ; nLauf++ )
ppP_Str[ nLauf ] = NULL;
@@ -169,7 +169,7 @@ bool TokenPool::GrowString( void )
sal_uInt16 nL;
- String** ppP_StrNew = new (::std::nothrow) String *[ nP_StrNew ];
+ OUString** ppP_StrNew = new (::std::nothrow) OUString *[ nP_StrNew ];
if (!ppP_StrNew)
return false;
@@ -392,7 +392,7 @@ bool TokenPool::GetElement( const sal_uInt16 nId )
case T_Str:
{
sal_uInt16 n = pElement[ nId ];
- String* p = ( n < nP_Str )? ppP_Str[ n ] : NULL;
+ OUString* p = ( n < nP_Str )? ppP_Str[ n ] : NULL;
if (p)
pScToken->AddString( *p );
else
@@ -658,7 +658,7 @@ const TokenId TokenPool::Store( const sal_uInt16 nIndex )
}
-const TokenId TokenPool::Store( const String& rString )
+const TokenId TokenPool::Store( const OUString& rString )
{
// weitgehend nach Store( const sal_Char* ) kopiert, zur Vermeidung
// eines temporaeren Strings in "
@@ -678,7 +678,7 @@ const TokenId TokenPool::Store( const String& rString )
// String anlegen
if( !ppP_Str[ nP_StrAkt ] )
//...aber nur, wenn noch nicht vorhanden
- ppP_Str[ nP_StrAkt ] = new (::std::nothrow) String( rString );
+ ppP_Str[ nP_StrAkt ] = new (::std::nothrow) OUString( rString );
else
//...ansonsten nur kopieren
*ppP_Str[ nP_StrAkt ] = rString;
@@ -686,7 +686,7 @@ const TokenId TokenPool::Store( const String& rString )
if (ppP_Str[ nP_StrAkt ])
{
DBG_ASSERT( sizeof( xub_StrLen ) <= 2, "*TokenPool::Store(): StrLen doesn't match!" );
- pSize[ nElementAkt ] = ( sal_uInt16 ) ppP_Str[ nP_StrAkt ]->Len();
+ pSize[ nElementAkt ] = ( sal_uInt16 ) ppP_Str[ nP_StrAkt ]->getLength();
}
nElementAkt++;
@@ -752,7 +752,7 @@ const TokenId TokenPool::Store( const ScComplexRefData& rTr )
}
-const TokenId TokenPool::Store( const DefTokenId e, const String& r )
+const TokenId TokenPool::Store( const DefTokenId e, const OUString& r )
{
if( nElementAkt >= nElement )
if (!GrowElement())
@@ -850,7 +850,7 @@ const TokenId TokenPool::StoreName( sal_uInt16 nIndex, bool bGlobal )
return static_cast<const TokenId>(nElementAkt);
}
-const TokenId TokenPool::StoreExtName( sal_uInt16 nFileId, const String& rName )
+const TokenId TokenPool::StoreExtName( sal_uInt16 nFileId, const OUString& rName )
{
if ( nElementAkt >= nElement )
if (!GrowElement())
@@ -869,7 +869,7 @@ const TokenId TokenPool::StoreExtName( sal_uInt16 nFileId, const String& rName )
return static_cast<const TokenId>(nElementAkt);
}
-const TokenId TokenPool::StoreExtRef( sal_uInt16 nFileId, const String& rTabName, const ScSingleRefData& rRef )
+const TokenId TokenPool::StoreExtRef( sal_uInt16 nFileId, const OUString& rTabName, const ScSingleRefData& rRef )
{
if ( nElementAkt >= nElement )
if (!GrowElement())
@@ -889,7 +889,7 @@ const TokenId TokenPool::StoreExtRef( sal_uInt16 nFileId, const String& rTabName
return static_cast<const TokenId>(nElementAkt);
}
-const TokenId TokenPool::StoreExtRef( sal_uInt16 nFileId, const String& rTabName, const ScComplexRefData& rRef )
+const TokenId TokenPool::StoreExtRef( sal_uInt16 nFileId, const OUString& rTabName, const ScComplexRefData& rRef )
{
if ( nElementAkt >= nElement )
if (!GrowElement())
@@ -945,9 +945,9 @@ sal_Bool TokenPool::IsSingleOp( const TokenId& rId, const DefTokenId eId ) const
return false;
}
-const String* TokenPool::GetExternal( const TokenId& rId ) const
+const OUString* TokenPool::GetExternal( const TokenId& rId ) const
{
- const String* p = NULL;
+ const OUString* p = NULL;
sal_uInt16 n = (sal_uInt16) rId;
if( n && n <= nElementAkt )
{