diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-11-01 13:09:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-11-01 13:14:09 +0000 |
commit | 2ffd82c350efb7d04ea0019fc1845f314940f995 (patch) | |
tree | 758635d5bd788ee3af8dffa290d4dc4d8f8483b8 /svl/source | |
parent | 5346394e9fb82c4a15ca7202f5d7ca6d27165aff (diff) |
XubString->OUString
Change-Id: Iea7d8681cdcd45d545826af63fc689640dfe29f0
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/items/ctypeitm.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svl/source/items/ctypeitm.cxx b/svl/source/items/ctypeitm.cxx index 0ab7c2e96488..dc15162418df 100644 --- a/svl/source/items/ctypeitm.cxx +++ b/svl/source/items/ctypeitm.cxx @@ -46,7 +46,7 @@ CntContentTypeItem::CntContentTypeItem() } //---------------------------------------------------------------------------- -CntContentTypeItem::CntContentTypeItem( sal_uInt16 which, const XubString& rType ) +CntContentTypeItem::CntContentTypeItem( sal_uInt16 which, const OUString& rType ) : CntUnencodedStringItem( which, rType ), _eType( CONTENT_TYPE_NOT_INIT ) { @@ -122,11 +122,11 @@ SfxPoolItem* CntContentTypeItem::Clone( SfxItemPool* /* pPool */ ) const } //---------------------------------------------------------------------------- -void CntContentTypeItem::SetValue( const XubString& rNewVal ) +void CntContentTypeItem::SetValue( const OUString& rNewVal ) { // De-initialize enum type and presentation. _eType = CONTENT_TYPE_NOT_INIT; - _aPresentation.Erase(); + _aPresentation = OUString(); CntUnencodedStringItem::SetValue( rNewVal ); } @@ -150,7 +150,7 @@ SfxItemPresentation CntContentTypeItem::GetPresentation( XubString & rText, const IntlWrapper * pIntlWrapper) const { - if (_aPresentation.Len() == 0) + if (_aPresentation.isEmpty()) { DBG_ASSERT(pIntlWrapper, "CntContentTypeItem::GetPresentation(): No IntlWrapper"); @@ -160,7 +160,7 @@ SfxItemPresentation CntContentTypeItem::GetPresentation( pIntlWrapper-> getLocale()); } - if (_aPresentation.Len() > 0) + if (!_aPresentation.isEmpty()) { rText = _aPresentation; return SFX_ITEM_PRESENTATION_COMPLETE; @@ -217,7 +217,7 @@ bool CntContentTypeItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uIn SetValue(aValue); else SetValue( - INetContentTypes::RegisterContentType(aValue, UniString())); + INetContentTypes::RegisterContentType(aValue, OUString())); return true; } |