summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/ftp
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/ftp
parent2241dd8d83fa8a89502ad7985427c5c79d94ce21 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part9
Change-Id: I82ed4a4868cb22566706ca0f4b1321e0d45016cf
Diffstat (limited to 'ucb/source/ucp/ftp')
-rw-r--r--ucb/source/ucp/ftp/ftpcontent.cxx2
-rw-r--r--ucb/source/ucp/ftp/ftpcontentcaps.cxx10
-rw-r--r--ucb/source/ucp/ftp/ftpresultsetbase.cxx4
3 files changed, 8 insertions, 8 deletions
diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx
index 24c63ffbad2f..5d3a70e1156f 100644
--- a/ucb/source/ucp/ftp/ftpcontent.cxx
+++ b/ucb/source/ucp/ftp/ftpcontent.cxx
@@ -661,7 +661,7 @@ FTPContent::queryCreatableContentsInfo_Static( )
props[0] = Property(
OUString("Title"),
-1,
- getCppuType( static_cast< OUString* >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
PropertyAttribute::MAYBEVOID
| PropertyAttribute::BOUND );
seq[0].Properties = props;
diff --git a/ucb/source/ucp/ftp/ftpcontentcaps.cxx b/ucb/source/ucp/ftp/ftpcontentcaps.cxx
index ce8bbc1b910a..8e4aa4e993bf 100644
--- a/ucb/source/ucp/ftp/ftpcontentcaps.cxx
+++ b/ucb/source/ucp/ftp/ftpcontentcaps.cxx
@@ -43,7 +43,7 @@ uno::Sequence< beans::Property > FTPContent::getProperties(
beans::Property(
OUString( "ContentType" ),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
@@ -64,21 +64,21 @@ uno::Sequence< beans::Property > FTPContent::getProperties(
beans::Property(
OUString( "Title" ),
-1,
- getCppuType( static_cast< const OUString * >( 0 ) ),
+ cppu::UnoType<OUString>::get(),
beans::PropertyAttribute::BOUND
// | beans::PropertyAttribute::READONLY
),
beans::Property(
OUString( "Size" ),
-1,
- getCppuType( static_cast< const sal_Int64 * >( 0 ) ),
+ cppu::UnoType<sal_Int64>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
beans::Property(
OUString( "DateCreated" ),
-1,
- getCppuType( static_cast< util::DateTime * >( 0 ) ),
+ cppu::UnoType<util::DateTime>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::READONLY
),
@@ -165,7 +165,7 @@ uno::Sequence< ucb::CommandInfo > FTPContent::getCommands(
ucb::CommandInfo(
OUString( "createNewContent" ),
-1,
- getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
+ cppu::UnoType<ucb::ContentInfo>::get()
)
};
diff --git a/ucb/source/ucp/ftp/ftpresultsetbase.cxx b/ucb/source/ucp/ftp/ftpresultsetbase.cxx
index d37f99128b76..a1ed5f7aab07 100644
--- a/ucb/source/ucp/ftp/ftpresultsetbase.cxx
+++ b/ucb/source/ucp/ftp/ftpresultsetbase.cxx
@@ -504,12 +504,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<sal_Int32>::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<sal_Bool>::get();
seq[1].Attributes = beans::PropertyAttribute::READONLY;
//t