diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-29 16:28:00 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-09-05 08:54:11 +0200 |
commit | c8375ca155fca6d8c0cfd75058954bff9a48d5f2 (patch) | |
tree | 7e9bad4d7ea728feec444627b179fe381218855d /svx/source/unodraw | |
parent | 10407bdad878e4c17e69043d1b6cad72b1aa9672 (diff) |
convert include/svx/xit.hxx from String to OUString
Change-Id: Ib5ba87a934fbe9220427145eb54e3de3c49b03ad
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r-- | svx/source/unodraw/UnoNameItemTable.cxx | 2 | ||||
-rw-r--r-- | svx/source/unodraw/unomtabl.cxx | 6 | ||||
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/unodraw/UnoNameItemTable.cxx b/svx/source/unodraw/UnoNameItemTable.cxx index 3b44653f575d..cb97bd02873b 100644 --- a/svx/source/unodraw/UnoNameItemTable.cxx +++ b/svx/source/unodraw/UnoNameItemTable.cxx @@ -53,7 +53,7 @@ SvxUnoNameItemTable::~SvxUnoNameItemTable() throw() bool SvxUnoNameItemTable::isValid( const NameOrIndex* pItem ) const { - return pItem && (pItem->GetName().Len() != 0); + return pItem && !pItem->GetName().isEmpty(); } void SvxUnoNameItemTable::dispose() diff --git a/svx/source/unodraw/unomtabl.cxx b/svx/source/unodraw/unomtabl.cxx index 81b61e729a10..616b2a050edf 100644 --- a/svx/source/unodraw/unomtabl.cxx +++ b/svx/source/unodraw/unomtabl.cxx @@ -347,7 +347,7 @@ static void createNamesForPool( SfxItemPool* pPool, sal_uInt16 nWhich, std::set< { NameOrIndex* pItem = (NameOrIndex*)pPool->GetItem2( nWhich, nSurrogate ); - if( pItem == NULL || pItem->GetName().Len() == 0 ) + if( pItem == NULL || pItem->GetName().isEmpty() ) continue; OUString aName = SvxUnogetApiNameForItem(XATTR_LINEEND, pItem->GetName()); @@ -435,7 +435,7 @@ sal_Bool SAL_CALL SvxUnoMarkerTable::hasElements( ) for( nSurrogate = 0; nSurrogate < nStartCount; nSurrogate++ ) { pItem = (NameOrIndex*)mpModelPool->GetItem2( XATTR_LINESTART, nSurrogate); - if( pItem && pItem->GetName().Len() != 0 ) + if( pItem && !pItem->GetName().isEmpty() ) return sal_True; } @@ -443,7 +443,7 @@ sal_Bool SAL_CALL SvxUnoMarkerTable::hasElements( ) for( nSurrogate = 0; nSurrogate < nEndCount; nSurrogate++ ) { pItem = (NameOrIndex*)mpModelPool->GetItem2( XATTR_LINEEND, nSurrogate); - if( pItem && pItem->GetName().Len() != 0 ) + if( pItem && !pItem->GetName().isEmpty() ) return sal_True; } diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 1a9c3651091f..f0a26084c2a3 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -2131,7 +2131,7 @@ beans::PropertyState SAL_CALL SvxShape::_getPropertyState( const OUString& Prope case XATTR_LINEDASH: { NameOrIndex* pItem = (NameOrIndex*)rSet.GetItem((sal_uInt16)pMap->nWID); - if( ( pItem == NULL ) || ( pItem->GetName().Len() == 0) ) + if( ( pItem == NULL ) || pItem->GetName().isEmpty() ) eState = beans::PropertyState_DEFAULT_VALUE; } break; |