summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/package
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-10 23:51:21 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-10 23:54:07 +0200
commitfa51b556800f332b311786770b3d6e57b65f615c (patch)
tree4218dbf7025f8d88550d941c2394c8c442324187 /ucb/source/ucp/package
parent2241dd8d83fa8a89502ad7985427c5c79d94ce21 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part9
Change-Id: I82ed4a4868cb22566706ca0f4b1321e0d45016cf
Diffstat (limited to 'ucb/source/ucp/package')
-rw-r--r--ucb/source/ucp/package/pkgcontent.cxx10
-rw-r--r--ucb/source/ucp/package/pkgcontentcaps.cxx24
2 files changed, 17 insertions, 17 deletions
diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx
index 2c703b057c0f..2b85a29025ec 100644
--- a/ucb/source/ucp/package/pkgcontent.cxx
+++ b/ucb/source/ucp/package/pkgcontent.cxx
@@ -109,7 +109,7 @@ ContentProperties::getCreatableContentsInfo( PackageUri const & rUri ) const
aProps.getArray()[ 0 ] = beans::Property(
OUString("Title"),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND );
uno::Sequence< ucb::ContentInfo > aSeq( 2 );
@@ -924,7 +924,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
beans::Property(
OUString("ContentType"),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY ),
rData.aContentType );
@@ -932,7 +932,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
beans::Property(
OUString("Title"),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND ),
rData.aTitle );
xRow->appendBoolean(
@@ -965,7 +965,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
beans::Property(
OUString("MediaType"),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND ),
rData.aMediaType );
@@ -976,7 +976,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
beans::Property(
OUString("Size"),
-1,
- getCppuType( static_cast< const sal_Int64 * >( 0 ) ),
+ cppu::UnoType<sal_Int64>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY ),
rData.nSize );
diff --git a/ucb/source/ucp/package/pkgcontentcaps.cxx b/ucb/source/ucp/package/pkgcontentcaps.cxx
index a45e58073bb8..2e81cb493a3a 100644
--- a/ucb/source/ucp/package/pkgcontentcaps.cxx
+++ b/ucb/source/ucp/package/pkgcontentcaps.cxx
@@ -105,7 +105,7 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::Property(
OUString( "ContentType" ),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
@@ -126,7 +126,7 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::Property(
OUString( "Title" ),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
@@ -136,7 +136,7 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::Property(
OUString( "MediaType" ),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
),
beans::Property(
@@ -177,7 +177,7 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::Property(
OUString( "ContentType" ),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
@@ -198,7 +198,7 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::Property(
OUString( "Title" ),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
),
@@ -207,7 +207,7 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::Property(
OUString( "MediaType" ),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
),
beans::Property(
@@ -242,7 +242,7 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::Property(
OUString( "ContentType" ),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
@@ -263,7 +263,7 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::Property(
OUString( "Title" ),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
),
@@ -272,13 +272,13 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::Property(
OUString( "MediaType" ),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
),
beans::Property(
OUString( "Size" ),
-1,
- getCppuType( static_cast< const sal_Int64 * >( 0 ) ),
+ cppu::UnoType<sal_Int64>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
@@ -375,7 +375,7 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
ucb::CommandInfo(
OUString( "createNewContent" ),
-1,
- getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
+ cppu::UnoType<ucb::ContentInfo>::get()
),
// New commands
@@ -454,7 +454,7 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
ucb::CommandInfo(
OUString( "createNewContent" ),
-1,
- getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
+ cppu::UnoType<ucb::ContentInfo>::get()
),
// New commands