make basic XubString free
Change-Id: Iea5c01fe902b052a55c86ca3b879bcca12c80690
This commit is contained in:
@@ -1420,7 +1420,7 @@ sal_Bool SbxValue::LoadData( SvStream& r, sal_uInt16 )
|
||||
case SbxSINGLE:
|
||||
{
|
||||
// Floats as ASCII
|
||||
XubString aVal = read_lenPrefixed_uInt8s_ToOUString<sal_uInt16>(r,
|
||||
OUString aVal = read_lenPrefixed_uInt8s_ToOUString<sal_uInt16>(r,
|
||||
RTL_TEXTENCODING_ASCII_US);
|
||||
double d;
|
||||
SbxDataType t;
|
||||
@@ -1436,7 +1436,7 @@ sal_Bool SbxValue::LoadData( SvStream& r, sal_uInt16 )
|
||||
case SbxDOUBLE:
|
||||
{
|
||||
// Floats as ASCII
|
||||
XubString aVal = read_lenPrefixed_uInt8s_ToOUString<sal_uInt16>(r,
|
||||
OUString aVal = read_lenPrefixed_uInt8s_ToOUString<sal_uInt16>(r,
|
||||
RTL_TEXTENCODING_ASCII_US);
|
||||
SbxDataType t;
|
||||
if( ImpScan( aVal, aData.nDouble, t, NULL ) != SbxERR_OK )
|
||||
|
@@ -700,7 +700,7 @@ sal_Int16 SAL_CALL SvxShowCharSetItemAcc::getAccessibleRole()
|
||||
ensureAlive();
|
||||
String sDescription = SVX_RESSTR( RID_SVXSTR_CHARACTER_CODE );
|
||||
|
||||
sal_Unicode c = mpParent->maText.GetChar(0);
|
||||
sal_Unicode c = mpParent->maText[0];
|
||||
char buf[16] = "0x0000";
|
||||
sal_Unicode c_Shifted = c;
|
||||
for( int i = 0; i < 4; ++i )
|
||||
@@ -718,18 +718,18 @@ sal_Int16 SAL_CALL SvxShowCharSetItemAcc::getAccessibleRole()
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
::rtl::OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleName()
|
||||
OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleName()
|
||||
throw (uno::RuntimeException)
|
||||
{
|
||||
OExternalLockGuard aGuard( this );
|
||||
ensureAlive();
|
||||
String aRet;
|
||||
OUString aRet;
|
||||
|
||||
if( mpParent )
|
||||
{
|
||||
aRet = mpParent->maText;
|
||||
|
||||
if( !aRet.Len() )
|
||||
if (aRet.isEmpty())
|
||||
aRet = getAccessibleDescription();
|
||||
}
|
||||
|
||||
|
@@ -97,7 +97,7 @@ namespace svx
|
||||
{
|
||||
SvxShowCharSet& mrParent;
|
||||
sal_uInt16 mnId;
|
||||
XubString maText;
|
||||
OUString maText;
|
||||
Rectangle maRect;
|
||||
SvxShowCharSetItemAcc* m_pItem;
|
||||
SvxShowCharSetAcc* m_pParent;
|
||||
|
@@ -85,7 +85,6 @@ SdrItemPool::SdrItemPool(
|
||||
{
|
||||
// prepare some constants
|
||||
const Color aNullCol(RGB_Color(COL_BLACK));
|
||||
const XubString aEmptyStr;
|
||||
const sal_Int32 nDefEdgeDist(500L); // Defaulting hard for Draw (100TH_MM) currently. MapMode will have to be taken into account in the future.
|
||||
|
||||
// init the non-persistent items
|
||||
@@ -96,7 +95,7 @@ SdrItemPool::SdrItemPool(
|
||||
|
||||
// init own PoolDefaults
|
||||
mppLocalPoolDefaults[SDRATTR_SHADOW -SDRATTR_START]=new SdrShadowItem;
|
||||
mppLocalPoolDefaults[SDRATTR_SHADOWCOLOR -SDRATTR_START]=new SdrShadowColorItem(aEmptyStr,aNullCol);
|
||||
mppLocalPoolDefaults[SDRATTR_SHADOWCOLOR -SDRATTR_START]=new SdrShadowColorItem(OUString(),aNullCol);
|
||||
mppLocalPoolDefaults[SDRATTR_SHADOWXDIST -SDRATTR_START]=new SdrShadowXDistItem;
|
||||
mppLocalPoolDefaults[SDRATTR_SHADOWYDIST -SDRATTR_START]=new SdrShadowYDistItem;
|
||||
mppLocalPoolDefaults[SDRATTR_SHADOWTRANSPARENCE-SDRATTR_START]=new SdrShadowTransparenceItem;
|
||||
|
@@ -1841,9 +1841,9 @@ void SdrTableObj::EndTextEdit(SdrOutliner& rOutl)
|
||||
if(nParaAnz == 1)
|
||||
{
|
||||
// if its only one paragraph, check if it is empty
|
||||
XubString aStr(rOutl.GetText(p1stPara));
|
||||
OUString aStr(rOutl.GetText(p1stPara));
|
||||
|
||||
if(!aStr.Len())
|
||||
if(aStr.isEmpty())
|
||||
{
|
||||
// gotcha!
|
||||
nParaAnz = 0;
|
||||
|
Reference in New Issue
Block a user