From ad5bc7a1ecbe41ae49860c7223fd9f99cb3c4697 Mon Sep 17 00:00:00 2001 From: August Sodora Date: Sun, 15 Jan 2012 23:55:04 -0500 Subject: String->OUString --- basic/inc/basic/sbdef.hxx | 3 +-- basic/source/runtime/methods.cxx | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'basic') diff --git a/basic/inc/basic/sbdef.hxx b/basic/inc/basic/sbdef.hxx index fefdc374596e..d3a86152a469 100644 --- a/basic/inc/basic/sbdef.hxx +++ b/basic/inc/basic/sbdef.hxx @@ -30,13 +30,12 @@ #define _SB_SBDEF_HXX #include -#include #include #include "basicdllapi.h" // Returns type name for Basic type, array flag is ignored // implementation: basic/source/runtime/methods.cxx -BASIC_DLLPUBLIC String getBasicTypeName( SbxDataType eType ); +BASIC_DLLPUBLIC ::rtl::OUString getBasicTypeName( SbxDataType eType ); // Returns type name for Basic objects, especially // important for SbUnoObj instances diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index e6aef79f5e8d..e457b2e2e8f1 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -3414,7 +3414,7 @@ RTLFUNC(VarType) } // Exported function -String getBasicTypeName( SbxDataType eType ) +rtl::OUString getBasicTypeName( SbxDataType eType ) { static const char* pTypeNames[] = { @@ -3462,8 +3462,7 @@ String getBasicTypeName( SbxDataType eType ) sal_uInt16 nTypeNameCount = sizeof( pTypeNames ) / sizeof( char* ); if ( nPos < 0 || nPos >= nTypeNameCount ) nPos = nTypeNameCount - 1; - String aRetStr = String::CreateFromAscii( pTypeNames[nPos] ); - return aRetStr; + return rtl::OUString::createFromAscii(pTypeNames[nPos]); } String getObjectTypeName( SbxVariable* pVar ) -- cgit