summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-23 22:11:27 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-23 22:11:52 +0200
commitac76cc7e605b1bc9c0ff8e24d0b9995a8247074e (patch)
tree797df8cc9387fa70a0c09e574f49714ce4dc6710 /sot
parent3191d7d1302dbde2445b9f300b3eb853120ede65 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
Diffstat (limited to 'sot')
-rw-r--r--sot/source/base/exchange.cxx6
-rw-r--r--sot/source/unoolestorage/xolesimplestorage.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx
index bfd29d6d93d1..084b1b57c1e9 100644
--- a/sot/source/base/exchange.cxx
+++ b/sot/source/base/exchange.cxx
@@ -61,7 +61,7 @@ namespace
static const DataFlavorRepresentation aInstance[] =
{
/* 0 SOT_FORMAT_SYSTEM_START*/ { "", "", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 1 SOT_FORMAT_STRING*/ { "text/plain;charset=utf-16", "Text", &::getCppuType( (const OUString*) 0 ) },
+ /* 1 SOT_FORMAT_STRING*/ { "text/plain;charset=utf-16", "Text", &cppu::UnoType<OUString>::get()},
/* 2 SOT_FORMAT_BITMAP*/ { "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"", "Bitmap", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/* 3 SOT_FORMAT_GDIMETAFILE*/ { "application/x-openoffice-gdimetafile;windows_formatname=\"GDIMetaFile\"", "GDIMetaFile", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/* 4 SOT_FORMAT_PRIVATE*/ { "application/x-openoffice-private;windows_formatname=\"Private\"", "Private", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
@@ -261,7 +261,7 @@ sal_uLong SotExchange::RegisterFormatName( const OUString& rName )
pNewFlavor->MimeType = rName;
pNewFlavor->HumanPresentableName = rName;
- pNewFlavor->DataType = ::getCppuType( (const OUString*) 0 );
+ pNewFlavor->DataType = cppu::UnoType<OUString>::get();
rL.push_back( pNewFlavor );
@@ -296,7 +296,7 @@ sal_uLong SotExchange::RegisterFormatMimeType( const OUString& rMimeType )
pNewFlavor->MimeType = rMimeType;
pNewFlavor->HumanPresentableName = rMimeType;
- pNewFlavor->DataType = ::getCppuType( (const OUString*) 0 );
+ pNewFlavor->DataType = cppu::UnoType<OUString>::get();
rL.push_back( pNewFlavor );
diff --git a/sot/source/unoolestorage/xolesimplestorage.cxx b/sot/source/unoolestorage/xolesimplestorage.cxx
index 12fcd50141e3..1e8ba5027f9e 100644
--- a/sot/source/unoolestorage/xolesimplestorage.cxx
+++ b/sot/source/unoolestorage/xolesimplestorage.cxx
@@ -597,7 +597,7 @@ uno::Type SAL_CALL OLESimpleStorage::getElementType()
if ( m_bDisposed )
throw lang::DisposedException();
- return getCppuType( (const uno::Reference< io::XInputStream >*)NULL );
+ return cppu::UnoType<io::XInputStream>::get();
}