From fa51b556800f332b311786770b3d6e57b65f615c Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 10 May 2014 23:51:21 +0200 Subject: Prefer cppu::UnoType::get() to ::getCppuType((T*)0) part9 Change-Id: I82ed4a4868cb22566706ca0f4b1321e0d45016cf --- xmlhelp/source/cxxhelp/provider/contentcaps.cxx | 10 +++++----- xmlhelp/source/cxxhelp/provider/resultsetbase.cxx | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/cxxhelp/provider/contentcaps.cxx b/xmlhelp/source/cxxhelp/provider/contentcaps.cxx index d53bbba40e8d..38a8bbbf9c6c 100644 --- a/xmlhelp/source/cxxhelp/provider/contentcaps.cxx +++ b/xmlhelp/source/cxxhelp/provider/contentcaps.cxx @@ -50,7 +50,7 @@ uno::Sequence< beans::Property > Content::getProperties( beans::Property( "ContentType", -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); props[idx++] = @@ -85,7 +85,7 @@ uno::Sequence< beans::Property > Content::getProperties( beans::Property( "Title", -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); if( withMediaType ) @@ -93,7 +93,7 @@ uno::Sequence< beans::Property > Content::getProperties( beans::Property( "MediaType", -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); if( isModule ) @@ -102,7 +102,7 @@ uno::Sequence< beans::Property > Content::getProperties( beans::Property( "Order", -1, - getCppuType( static_cast< sal_Int32* >( 0 ) ), + cppu::UnoType::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); props[idx++] = @@ -147,7 +147,7 @@ uno::Sequence< beans::Property > Content::getProperties( beans::Property( "AnchorName", -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); } diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx index 671bd0973306..525cc975fc47 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx @@ -497,12 +497,12 @@ ResultSetBase::getPropertySetInfo() uno::Sequence< beans::Property > seq(2); seq[0].Name = "RowCount"; seq[0].Handle = -1; - seq[0].Type = getCppuType( static_cast< sal_Int32* >(0) ); + seq[0].Type = cppu::UnoType::get(); seq[0].Attributes = beans::PropertyAttribute::READONLY; seq[1].Name = "IsRowCountFinal"; seq[1].Handle = -1; - seq[1].Type = getCppuType( static_cast< sal_Bool* >(0) ); + seq[1].Type = cppu::UnoType::get(); seq[1].Attributes = beans::PropertyAttribute::READONLY; //t -- cgit