summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-11-01 13:09:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-11-01 13:14:09 +0000
commit2ffd82c350efb7d04ea0019fc1845f314940f995 (patch)
tree758635d5bd788ee3af8dffa290d4dc4d8f8483b8 /svl
parent5346394e9fb82c4a15ca7202f5d7ca6d27165aff (diff)
XubString->OUString
Change-Id: Iea7d8681cdcd45d545826af63fc689640dfe29f0
Diffstat (limited to 'svl')
-rw-r--r--svl/inc/svl/ctypeitm.hxx6
-rw-r--r--svl/inc/svl/stritem.hxx2
-rw-r--r--svl/source/items/ctypeitm.cxx12
3 files changed, 10 insertions, 10 deletions
diff --git a/svl/inc/svl/ctypeitm.hxx b/svl/inc/svl/ctypeitm.hxx
index bf7495fa3d8d..eef9c6c61c7b 100644
--- a/svl/inc/svl/ctypeitm.hxx
+++ b/svl/inc/svl/ctypeitm.hxx
@@ -28,13 +28,13 @@ class CntContentTypeItem : public CntUnencodedStringItem
{
private:
INetContentType _eType;
- XubString _aPresentation;
+ OUString _aPresentation;
public:
TYPEINFO();
CntContentTypeItem();
- CntContentTypeItem( sal_uInt16 nWhich, const XubString& rType );
+ CntContentTypeItem( sal_uInt16 nWhich, const OUString& rType );
CntContentTypeItem( const CntContentTypeItem& rOrig );
virtual SfxPoolItem* Create( SvStream& rStream,
@@ -47,7 +47,7 @@ public:
virtual SfxPoolItem* Clone( SfxItemPool *pPool = NULL ) const;
- void SetValue( const XubString& rNewVal );
+ void SetValue( const OUString& rNewVal );
using SfxPoolItem::Compare;
virtual int Compare( const SfxPoolItem &rWith, const IntlWrapper& rIntlWrapper ) const;
diff --git a/svl/inc/svl/stritem.hxx b/svl/inc/svl/stritem.hxx
index 87b65c792532..a4109218c79e 100644
--- a/svl/inc/svl/stritem.hxx
+++ b/svl/inc/svl/stritem.hxx
@@ -31,7 +31,7 @@ public:
SfxStringItem() {}
- SfxStringItem(sal_uInt16 which, const XubString & rValue):
+ SfxStringItem(sal_uInt16 which, const OUString & rValue):
CntUnencodedStringItem(which, rValue) {}
SfxStringItem(sal_uInt16 nWhich, SvStream & rStream);
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;
}